home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-05-10 | 15.0 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed May 10 11:26:31 1995, modified Wed May 10 11:26:31 1995, creator Think C, type ASCII, 14800 bytes "How to write plug-in brains" , at 0x3a50 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1b 48 6f 77 20 74 6f | 20 77 72 69 74 65 20 70 |..How to| write p|
|00000010| 6c 75 67 2d 69 6e 20 62 | 72 61 69 6e 73 00 00 00 |lug-in b|rains...|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 39 d0 00 | 00 01 7e ab d6 8b a7 ab |.....9..|..~.....|
|00000060| d6 8b a7 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 fa 38 00 00 |........|.....8..|
|00000080| 57 68 61 74 20 61 72 65 | 20 22 50 6c 75 67 2d 49 |What are| "Plug-I|
|00000090| 6e 20 42 72 61 69 6e 73 | 3f 22 0d 7e 7e 7e 7e 7e |n Brains|?".~~~~~|
|000000a0| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |~~~~~~~~|~~~~~~~~|
|000000b0| 7e 7e 7e 7e 7e 0d 42 6f | 6c 6f 20 73 75 70 70 6f |~~~~~.Bo|lo suppo|
|000000c0| 72 74 73 20 70 6c 75 67 | 2d 69 6e 20 27 62 72 61 |rts plug|-in 'bra|
|000000d0| 69 6e 27 20 6d 6f 64 75 | 6c 65 73 20 74 6f 20 64 |in' modu|les to d|
|000000e0| 72 69 76 65 20 42 6f 6c | 6f 20 74 61 6e 6b 73 2c |rive Bol|o tanks,|
|000000f0| 20 74 6f 20 61 6c 6c 6f | 77 3a 0d 31 2e 20 4f 6e | to allo|w:.1. On|
|00000100| 65 20 70 6c 61 79 65 72 | 20 67 61 6d 65 73 20 61 |e player| games a|
|00000110| 67 61 69 6e 73 74 20 61 | 20 6e 75 6d 62 65 72 20 |gainst a| number |
|00000120| 6f 66 20 27 41 49 27 20 | 74 61 6e 6b 73 2e 0d 32 |of 'AI' |tanks..2|
|00000130| 2e 20 54 77 6f 20 70 6c | 61 79 65 72 20 67 61 6d |. Two pl|ayer gam|
|00000140| 65 73 2c 20 77 68 65 72 | 65 20 65 61 63 68 20 70 |es, wher|e each p|
|00000150| 6c 61 79 65 72 20 63 6f | 6d 6d 61 6e 64 73 20 61 |layer co|mmands a|
|00000160| 20 70 6c 61 74 6f 6f 6e | 20 6f 66 20 41 49 20 74 | platoon| of AI t|
|00000170| 61 6e 6b 73 2e 0d 33 2e | 20 27 43 6f 72 65 20 57 |anks..3.| 'Core W|
|00000180| 61 72 27 20 73 74 79 6c | 65 20 74 6f 75 72 6e 61 |ar' styl|e tourna|
|00000190| 6d 65 6e 74 73 20 77 68 | 65 72 65 20 70 65 6f 70 |ments wh|ere peop|
|000001a0| 6c 65 20 63 6f 6d 70 65 | 74 65 20 74 6f 20 77 72 |le compe|te to wr|
|000001b0| 69 74 65 20 74 68 65 20 | 62 65 73 74 20 41 49 0d |ite the |best AI.|
|000001c0| 20 20 20 61 6c 67 6f 72 | 69 74 68 6d 73 2e 0d 0d | algor|ithms...|
|000001d0| 53 61 6d 70 6c 65 20 63 | 6f 64 65 20 69 73 20 70 |Sample c|ode is p|
|000001e0| 72 6f 76 69 64 65 64 2e | 20 49 74 20 69 73 20 62 |rovided.| It is b|
|000001f0| 61 73 69 63 61 6c 6c 79 | 20 74 68 65 20 6f 72 69 |asically| the ori|
|00000200| 67 69 6e 61 6c 20 42 6f | 6c 6f 20 30 2e 39 36 20 |ginal Bo|lo 0.96 |
|00000210| 27 41 75 74 6f 70 69 6c | 6f 74 27 0d 63 6f 6e 76 |'Autopil|ot'.conv|
|00000220| 65 72 74 65 64 20 74 6f | 20 42 42 52 4e 20 66 6f |erted to| BBRN fo|
|00000230| 72 6d 61 74 2c 20 77 69 | 74 68 20 74 68 65 20 61 |rmat, wi|th the a|
|00000240| 64 64 69 74 69 6f 6e 20 | 6f 66 20 62 65 74 74 65 |ddition |of bette|
|00000250| 72 20 70 61 74 68 20 66 | 69 6e 64 69 6e 67 20 61 |r path f|inding a|
|00000260| 6e 64 20 6d 69 6e 65 0d | 63 6c 65 61 72 69 6e 67 |nd mine.|clearing|
|00000270| 2e 20 49 74 20 69 73 20 | 6e 6f 74 20 76 65 72 79 |. It is |not very|
|00000280| 20 73 6d 61 72 74 2e 0d | 0d 48 6f 77 20 74 6f 20 | smart..|.How to |
|00000290| 77 72 69 74 65 20 70 6c | 75 67 2d 69 6e 20 27 62 |write pl|ug-in 'b|
|000002a0| 72 61 69 6e 27 20 6d 6f | 64 75 6c 65 73 20 74 6f |rain' mo|dules to|
|000002b0| 20 64 72 69 76 65 20 42 | 6f 6c 6f 20 74 61 6e 6b | drive B|olo tank|
|000002c0| 73 2e 0d 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |s..~~~~~|~~~~~~~~|
|000002d0| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |~~~~~~~~|~~~~~~~~|
|000002e0| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |~~~~~~~~|~~~~~~~~|
|000002f0| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 0d 45 61 63 |~~~~~~~~|~~~~.Eac|
|00000300| 68 20 70 6c 75 67 2d 69 | 6e 20 62 72 61 69 6e 20 |h plug-i|n brain |
|00000310| 6d 6f 64 75 6c 65 20 69 | 73 20 61 20 73 65 70 61 |module i|s a sepa|
|00000320| 72 61 74 65 20 66 69 6c | 65 2c 20 73 74 6f 72 65 |rate fil|e, store|
|00000330| 64 20 69 6e 20 74 68 65 | 20 22 42 72 61 69 6e 73 |d in the| "Brains|
|00000340| 22 20 66 6f 6c 64 65 72 | 2e 0d 0d 54 68 65 20 66 |" folder|...The f|
|00000350| 69 6c 65 20 73 68 6f 75 | 6c 64 20 68 61 76 65 20 |ile shou|ld have |
|00000360| 74 79 70 65 20 27 42 42 | 52 4e 27 2e 0d 49 74 20 |type 'BB|RN'..It |
|00000370| 63 61 6e 20 68 61 76 65 | 20 61 6e 79 20 63 72 65 |can have| any cre|
|00000380| 61 74 6f 72 20 63 6f 64 | 65 2c 20 61 6c 74 68 6f |ator cod|e, altho|
|00000390| 75 67 68 20 27 42 4f 4c | 4f 27 20 69 73 20 70 72 |ugh 'BOL|O' is pr|
|000003a0| 6f 62 61 62 6c 79 20 61 | 20 73 65 6e 73 69 62 6c |obably a| sensibl|
|000003b0| 65 20 63 68 6f 69 63 65 | 2e 0d 49 74 20 73 68 6f |e choice|..It sho|
|000003c0| 75 6c 64 20 63 6f 6e 74 | 61 69 6e 20 61 20 43 4f |uld cont|ain a CO|
|000003d0| 44 45 20 72 65 73 6f 75 | 72 63 65 20 77 69 74 68 |DE resou|rce with|
|000003e0| 20 49 44 20 31 30 30 30 | 2b 78 2c 20 77 68 65 72 | ID 1000|+x, wher|
|000003f0| 65 20 78 20 69 73 20 74 | 68 65 20 42 72 61 69 6e |e x is t|he Brain|
|00000400| 49 6e 66 6f 0d 76 65 72 | 73 69 6f 6e 20 74 68 61 |Info.ver|sion tha|
|00000410| 74 20 79 6f 75 72 20 63 | 6f 64 65 20 69 73 20 63 |t your c|ode is c|
|00000420| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 28 73 65 65 |ompiled |for (see|
|00000430| 20 62 65 6c 6f 77 29 2e | 20 46 6f 72 20 76 65 72 | below).| For ver|
|00000440| 73 69 6f 6e 20 33 20 6f | 66 20 74 68 65 0d 69 6e |sion 3 o|f the.in|
|00000450| 74 65 72 66 61 63 65 2c | 20 74 68 69 73 20 6d 65 |terface,| this me|
|00000460| 61 6e 73 20 74 68 61 74 | 20 79 6f 75 20 73 68 6f |ans that| you sho|
|00000470| 75 6c 64 20 6d 61 6b 65 | 20 79 6f 75 72 20 63 6f |uld make| your co|
|00000480| 64 65 20 72 65 73 6f 75 | 72 63 65 20 68 61 76 65 |de resou|rce have|
|00000490| 20 49 44 20 31 30 30 33 | 2e 0d 0d 57 68 65 6e 20 | ID 1003|...When |
|000004a0| 74 68 65 20 75 73 65 72 | 20 73 65 6c 65 63 74 73 |the user| selects|
|000004b0| 20 79 6f 75 72 20 62 72 | 61 69 6e 20 66 72 6f 6d | your br|ain from|
|000004c0| 20 74 68 65 20 22 54 61 | 6e 6b 20 43 6f 6e 74 72 | the "Ta|nk Contr|
|000004d0| 6f 6c 22 20 6d 65 6e 75 | 20 69 6e 20 42 6f 6c 6f |ol" menu| in Bolo|
|000004e0| 2c 20 79 6f 75 72 0d 43 | 4f 44 45 20 72 65 73 6f |, your.C|ODE reso|
|000004f0| 75 72 63 65 20 69 73 20 | 6c 6f 61 64 65 64 20 69 |urce is |loaded i|
|00000500| 6e 74 6f 20 6d 65 6d 6f | 72 79 20 61 6e 64 20 6c |nto memo|ry and l|
|00000510| 6f 63 6b 65 64 20 64 6f | 77 6e 2e 0d 0d 59 6f 75 |ocked do|wn...You|
|00000520| 72 20 43 4f 44 45 20 72 | 65 73 6f 75 72 63 65 20 |r CODE r|esource |
|00000530| 77 69 6c 6c 20 62 65 20 | 63 61 6c 6c 65 64 20 77 |will be |called w|
|00000540| 69 74 68 20 41 34 20 73 | 65 74 20 74 6f 20 70 6f |ith A4 s|et to po|
|00000550| 69 6e 74 20 74 6f 20 74 | 68 65 20 62 61 73 65 20 |int to t|he base |
|00000560| 61 64 64 72 65 73 73 0d | 6f 66 20 74 68 65 20 72 |address.|of the r|
|00000570| 65 73 6f 75 72 63 65 20 | 28 69 65 20 73 65 74 20 |esource |(ie set |
|00000580| 75 70 20 74 6f 20 73 75 | 70 70 6f 72 74 20 54 68 |up to su|pport Th|
|00000590| 69 6e 6b 20 43 27 73 20 | 41 34 2d 72 65 6c 61 74 |ink C's |A4-relat|
|000005a0| 69 76 65 20 43 4f 44 45 | 20 72 65 73 6f 75 72 63 |ive CODE| resourc|
|000005b0| 65 0d 67 6c 6f 62 61 6c | 73 29 2e 20 59 6f 75 20 |e.global|s). You |
|000005c0| 6d 61 79 20 6d 61 6b 65 | 20 6c 69 6d 69 74 65 64 |may make| limited|
|000005d0| 20 4f 70 65 72 61 74 69 | 6e 67 20 53 79 73 74 65 | Operati|ng Syste|
|000005e0| 6d 20 61 6e 64 20 54 6f | 6f 6c 62 6f 78 20 63 61 |m and To|olbox ca|
|000005f0| 6c 6c 73 2c 20 69 6e 63 | 6c 75 64 69 6e 67 0d 51 |lls, inc|luding.Q|
|00000600| 75 69 63 6b 44 72 61 77 | 2c 20 69 66 20 6e 65 63 |uickDraw|, if nec|
|00000610| 65 73 73 61 72 79 20 28 | 65 67 20 70 75 74 74 69 |essary (|eg putti|
|00000620| 6e 67 20 75 70 20 61 20 | 64 69 61 6c 6f 67 20 62 |ng up a |dialog b|
|00000630| 6f 78 29 2e 20 28 48 6f | 77 65 76 65 72 2c 20 63 |ox). (Ho|wever, c|
|00000640| 61 72 65 20 6d 75 73 74 | 20 62 65 0d 74 61 6b 65 |are must| be.take|
|00000650| 6e 20 69 66 20 79 6f 75 | 20 64 65 63 69 64 65 20 |n if you| decide |
|00000660| 74 6f 20 61 63 63 65 73 | 73 20 51 75 69 63 6b 44 |to acces|s QuickD|
|00000670| 72 61 77 20 67 6c 6f 62 | 61 6c 73 2e 20 53 65 65 |raw glob|als. See|
|00000680| 20 74 68 65 20 54 68 69 | 6e 6b 20 43 20 6d 61 6e | the Thi|nk C man|
|00000690| 75 61 6c 0d 63 68 61 70 | 74 65 72 20 6f 6e 20 43 |ual.chap|ter on C|
|000006a0| 4f 44 45 20 72 65 73 6f | 75 72 63 65 73 2e 29 20 |ODE reso|urces.) |
|000006b0| 59 6f 75 72 20 72 65 73 | 6f 75 72 63 65 20 66 69 |Your res|ource fi|
|000006c0| 6c 65 20 77 69 6c 6c 20 | 62 65 20 6f 70 65 6e 20 |le will |be open |
|000006d0| 69 66 20 79 6f 75 20 6e | 65 65 64 0d 61 63 63 65 |if you n|eed.acce|
|000006e0| 73 73 20 74 6f 20 79 6f | 75 72 20 72 65 73 6f 75 |ss to yo|ur resou|
|000006f0| 72 63 65 73 2e 20 4f 6e | 65 20 70 61 72 61 6d 65 |rces. On|e parame|
|00000700| 74 65 72 20 69 73 20 70 | 61 73 73 65 64 20 6f 6e |ter is p|assed on|
|00000710| 20 74 68 65 20 73 74 61 | 63 6b 20 77 69 74 68 20 | the sta|ck with |
|00000720| 70 61 73 63 61 6c 0d 63 | 61 6c 6c 69 6e 67 20 63 |pascal.c|alling c|
|00000730| 6f 6e 76 65 6e 74 69 6f | 6e 73 2e 20 59 6f 75 20 |onventio|ns. You |
|00000740| 73 68 6f 75 6c 64 20 64 | 65 63 6c 61 72 65 20 79 |should d|eclare y|
|00000750| 6f 75 72 20 6d 61 69 6e | 20 72 6f 75 74 69 6e 65 |our main| routine|
|00000760| 20 74 68 75 73 3a 0d 0d | 70 61 73 63 61 6c 20 73 | thus:..|pascal s|
|00000770| 68 6f 72 74 20 6d 61 69 | 6e 28 63 6f 6e 73 74 20 |hort mai|n(const |
|00000780| 42 72 61 69 6e 49 6e 66 | 6f 20 2a 69 6e 66 6f 29 |BrainInf|o *info)|
|00000790| 0d 0d 54 68 65 20 73 74 | 72 75 63 74 75 72 65 20 |..The st|ructure |
|000007a0| 79 6f 75 20 61 72 65 20 | 70 61 73 73 65 64 20 6c |you are |passed l|
|000007b0| 6f 6f 6b 73 20 6c 69 6b | 65 20 74 68 69 73 3a 0d |ooks lik|e this:.|
|000007c0| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 0d 09 |typedef |struct..|
|000007d0| 7b 0d 09 75 5f 73 68 6f | 72 74 20 42 6f 6c 6f 56 |{..u_sho|rt BoloV|
|000007e0| 65 72 73 69 6f 6e 3b 09 | 2f 2f 20 74 77 6f 20 68 |ersion;.|// two h|
|000007f0| 65 78 20 62 79 74 65 73 | 2c 20 65 67 2e 20 30 78 |ex bytes|, eg. 0x|
|00000800| 30 30 39 38 20 6d 65 61 | 6e 73 20 76 65 72 73 69 |0098 mea|ns versi|
|00000810| 6f 6e 20 30 2e 39 38 0d | 09 75 5f 73 68 6f 72 74 |on 0.98.|.u_short|
|00000820| 20 49 6e 66 6f 56 65 72 | 73 69 6f 6e 3b 09 2f 2f | InfoVer|sion;.//|
|00000830| 20 63 75 72 72 65 6e 74 | 20 76 65 72 73 69 6f 6e | current| version|
|00000840| 20 6f 66 20 74 68 65 20 | 42 72 61 69 6e 49 6e 66 | of the |BrainInf|
|00000850| 6f 20 73 74 72 75 63 74 | 75 72 65 20 69 73 20 31 |o struct|ure is 1|
|00000860| 0d 09 76 6f 69 64 20 20 | 20 2a 75 73 65 72 64 61 |..void | *userda|
|00000870| 74 61 3b 09 09 2f 2f 20 | 49 6e 69 74 69 61 6c 6c |ta;..// |Initiall|
|00000880| 79 20 70 6f 69 6e 74 73 | 20 74 6f 20 61 64 64 72 |y points| to addr|
|00000890| 65 73 73 20 6f 66 20 79 | 6f 75 72 20 43 4f 44 45 |ess of y|our CODE|
|000008a0| 20 72 65 73 6f 75 72 63 | 65 0d 09 75 5f 73 68 6f | resourc|e..u_sho|
|000008b0| 72 74 20 70 61 64 64 69 | 6e 67 31 3b 09 09 2f 2f |rt paddi|ng1;..//|
|000008c0| 20 75 6e 75 73 65 64 20 | 61 74 20 70 72 65 73 65 | unused |at prese|
|000008d0| 6e 74 0d 09 75 5f 73 68 | 6f 72 74 20 50 72 65 66 |nt..u_sh|ort Pref|
|000008e0| 73 56 52 65 66 4e 75 6d | 3b 0d 09 75 5f 63 68 61 |sVRefNum|;..u_cha|
|000008f0| 72 20 2a 50 72 65 66 73 | 46 69 6c 65 4e 61 6d 65 |r *Prefs|FileName|
|00000900| 3b 0d 09 75 5f 73 68 6f | 72 74 20 6f 70 65 72 61 |;..u_sho|rt opera|
|00000910| 74 69 6f 6e 3b 09 09 2f | 2f 20 30 3d 4f 50 45 4e |tion;../|/ 0=OPEN|
|00000920| 2c 20 31 3d 43 4c 4f 53 | 45 2c 20 32 3d 54 48 49 |, 1=CLOS|E, 2=THI|
|00000930| 4e 4b 2c 20 32 30 30 2b | 20 6d 65 6e 75 0d 09 75 |NK, 200+| menu..u|
|00000940| 5f 73 68 6f 72 74 20 6d | 65 6e 75 5f 69 74 65 6d |_short m|enu_item|
|00000950| 3b 0d 09 2e 2e 2e 20 2f | 2f 20 28 73 65 65 20 61 |;..... /|/ (see a|
|00000960| 63 63 6f 6d 70 61 6e 79 | 69 6e 67 20 68 65 61 64 |ccompany|ing head|
|00000970| 65 72 20 66 69 6c 65 73 | 20 66 6f 72 20 6d 6f 72 |er files| for mor|
|00000980| 65 20 64 65 74 61 69 6c | 73 29 0d 09 7d 20 42 72 |e detail|s)..} Br|
|00000990| 61 69 6e 49 6e 66 6f 3b | 0d 0d 42 6f 6c 6f 56 65 |ainInfo;|..BoloVe|
|000009a0| 72 73 69 6f 6e 20 69 73 | 20 70 61 73 73 65 64 20 |rsion is| passed |
|000009b0| 66 6f 72 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 61 |for info|rmationa|
|000009c0| 6c 20 76 61 6c 75 65 20 | 6f 6e 6c 79 2e 20 4d 6f |l value |only. Mo|
|000009d0| 73 74 20 42 72 61 69 6e | 73 20 73 68 6f 75 6c 64 |st Brain|s should|
|000009e0| 0d 6e 6f 74 20 63 61 72 | 65 20 77 68 61 74 20 76 |.not car|e what v|
|000009f0| 65 72 73 69 6f 6e 20 6f | 66 20 42 6f 6c 6f 20 69 |ersion o|f Bolo i|
|00000a00| 73 20 72 75 6e 6e 69 6e | 67 2e 20 59 6f 75 20 73 |s runnin|g. You s|
|00000a10| 68 6f 75 6c 64 20 68 6f | 77 65 76 65 72 20 63 68 |hould ho|wever ch|
|00000a20| 65 63 6b 20 74 68 61 74 | 0d 49 6e 66 6f 56 65 72 |eck that|.InfoVer|
|00000a30| 73 69 6f 6e 20 69 6e 64 | 69 63 61 74 65 73 20 61 |sion ind|icates a|
|00000a40| 20 76 65 72 73 69 6f 6e | 20 6f 66 20 74 68 65 20 | version| of the |
|00000a50| 42 72 61 69 6e 49 6e 66 | 6f 20 73 74 72 75 63 74 |BrainInf|o struct|
|00000a60| 75 72 65 20 74 68 61 74 | 20 79 6f 75 72 20 63 6f |ure that| your co|
|00000a70| 64 65 0d 75 6e 64 65 72 | 73 74 61 6e 64 73 2e 20 |de.under|stands. |
|00000a80| 49 66 20 79 6f 75 72 20 | 63 6f 64 65 73 20 64 6f |If your |codes do|
|00000a90| 65 73 20 6e 6f 74 20 75 | 6e 64 65 72 73 74 61 6e |es not u|nderstan|
|00000aa0| 64 20 74 68 65 20 49 6e | 66 6f 56 65 72 73 69 6f |d the In|foVersio|
|00000ab0| 6e 20 74 68 65 6e 20 79 | 6f 75 0d 73 68 6f 75 6c |n then y|ou.shoul|
|00000ac0| 64 20 72 65 74 75 72 6e | 20 61 20 6e 6f 6e 2d 7a |d return| a non-z|
|00000ad0| 65 72 6f 20 65 72 72 6f | 72 20 63 6f 64 65 20 66 |ero erro|r code f|
|00000ae0| 72 6f 6d 20 74 68 65 20 | 22 4f 50 45 4e 22 20 63 |rom the |"OPEN" c|
|00000af0| 61 6c 6c 2e 0d 0d 22 75 | 73 65 72 64 61 74 61 22 |all..."u|serdata"|
|00000b00| 20 69 73 20 70 72 6f 76 | 69 64 65 64 20 66 6f 72 | is prov|ided for|
|00000b10| 20 4d 50 57 20 75 73 65 | 72 73 20 77 68 6f 20 64 | MPW use|rs who d|
|00000b20| 6f 20 6e 6f 74 20 68 61 | 76 65 20 74 68 65 20 41 |o not ha|ve the A|
|00000b30| 34 2d 67 6c 6f 62 61 6c | 73 20 66 61 63 69 6c 69 |4-global|s facili|
|00000b40| 74 79 2e 0d 49 74 20 69 | 73 20 69 6e 69 74 69 61 |ty..It i|s initia|
|00000b50| 6c 69 7a 65 64 20 74 6f | 20 70 6f 69 6e 74 20 74 |lized to| point t|
|00000b60| 6f 20 74 68 65 20 73 74 | 61 72 74 20 61 64 64 72 |o the st|art addr|
|00000b70| 65 73 73 20 6f 66 20 79 | 6f 75 72 20 63 6f 64 65 |ess of y|our code|
|00000b80| 20 28 69 65 20 74 68 65 | 20 73 61 6d 65 20 61 73 | (ie the| same as|
|00000b90| 0d 74 68 65 20 76 61 6c | 75 65 20 69 6e 20 41 34 |.the val|ue in A4|
|00000ba0| 29 2c 20 62 75 74 20 69 | 66 20 79 6f 75 20 65 6c |), but i|f you el|
|00000bb0| 65 63 74 20 74 6f 20 63 | 68 61 6e 67 65 20 69 74 |ect to c|hange it|
|00000bc0| 73 20 76 61 6c 75 65 20 | 28 73 61 79 20 74 6f 20 |s value |(say to |
|00000bd0| 70 6f 69 6e 74 20 74 6f | 20 61 0d 62 6c 6f 63 6b |point to| a.block|
|00000be0| 20 6f 66 20 6d 65 6d 6f | 72 79 20 79 6f 75 20 68 | of memo|ry you h|
|00000bf0| 61 76 65 20 61 6c 6c 6f | 63 61 74 65 64 20 66 6f |ave allo|cated fo|
|00000c00| 72 20 77 6f 72 6b 73 70 | 61 63 65 29 20 74 68 65 |r worksp|ace) the|
|00000c10| 6e 20 74 68 61 74 20 76 | 61 6c 75 65 20 77 69 6c |n that v|alue wil|
|00000c20| 6c 20 62 65 0d 70 72 65 | 73 65 72 76 65 64 20 69 |l be.pre|served i|
|00000c30| 6e 20 73 75 62 73 65 71 | 75 65 6e 74 20 63 61 6c |n subseq|uent cal|
|00000c40| 6c 73 2e 20 28 59 6f 75 | 20 77 69 6c 6c 20 68 61 |ls. (You| will ha|
|00000c50| 76 65 20 74 6f 20 75 73 | 65 20 61 20 63 61 73 74 |ve to us|e a cast|
|00000c60| 20 74 6f 20 6f 76 65 72 | 72 69 64 65 20 74 68 65 | to over|ride the|
|00000c70| 0d 27 63 6f 6e 73 74 27 | 20 70 72 6f 74 65 63 74 |.'const'| protect|
|00000c80| 69 6f 6e 20 6f 6e 20 74 | 68 65 20 42 72 61 69 6e |ion on t|he Brain|
|00000c90| 49 6e 66 6f 20 73 74 72 | 75 63 74 75 72 65 20 74 |Info str|ucture t|
|00000ca0| 68 61 74 20 42 6f 6c 6f | 20 70 61 73 73 65 73 20 |hat Bolo| passes |
|00000cb0| 74 6f 20 79 6f 75 20 2d | 2d 0d 68 61 6e 64 6c 65 |to you -|-.handle|
|00000cc0| 20 77 69 74 68 20 63 61 | 72 65 2e 29 0d 0d 50 72 | with ca|re.)..Pr|
|00000cd0| 65 66 73 56 52 65 66 4e | 75 6d 20 61 6e 64 20 50 |efsVRefN|um and P|
|00000ce0| 72 65 66 73 46 69 6c 65 | 4e 61 6d 65 20 61 72 65 |refsFile|Name are|
|00000cf0| 20 70 61 73 73 65 64 20 | 73 6f 20 74 68 61 74 20 | passed |so that |
|00000d00| 79 6f 75 20 63 61 6e 20 | 61 63 63 65 73 73 20 74 |you can |access t|
|00000d10| 68 65 20 75 73 65 72 27 | 73 0d 42 6f 6c 6f 20 50 |he user'|s.Bolo P|
|00000d20| 72 65 66 65 72 65 6e 63 | 65 73 20 66 69 6c 65 20 |referenc|es file |
|00000d30| 69 66 20 79 6f 75 20 77 | 69 73 68 2c 20 74 6f 20 |if you w|ish, to |
|00000d40| 73 74 6f 72 65 20 73 65 | 74 74 69 6e 67 73 20 62 |store se|ttings b|
|00000d50| 65 74 77 65 65 6e 20 61 | 63 74 69 76 61 74 69 6f |etween a|ctivatio|
|00000d60| 6e 73 20 6f 66 0d 79 6f | 75 72 20 42 72 61 69 6e |ns of.yo|ur Brain|
|00000d70| 2e 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 73 74 6f |. You sh|ould sto|
|00000d80| 72 65 20 79 6f 75 72 20 | 70 72 65 66 65 72 65 6e |re your |preferen|
|00000d90| 63 65 73 20 61 73 20 4e | 41 4d 45 44 20 72 65 73 |ces as N|AMED res|
|00000da0| 6f 75 72 63 65 73 20 69 | 6e 20 74 68 65 20 66 69 |ources i|n the fi|
|00000db0| 6c 65 2e 0d 0d 41 20 6c | 6f 74 20 6d 6f 72 65 20 |le...A l|ot more |
|00000dc0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 70 |informat|ion is p|
|00000dd0| 61 73 73 65 64 20 69 6e | 20 74 68 65 20 42 72 61 |assed in| the Bra|
|00000de0| 69 6e 49 6e 66 6f 20 73 | 74 72 75 63 74 75 72 65 |inInfo s|tructure|
|00000df0| 2c 20 61 6c 74 68 6f 75 | 67 68 20 6d 6f 73 74 0d |, althou|gh most.|
|00000e00| 6f 66 20 69 74 20 77 69 | 6c 6c 20 6f 6e 6c 79 20 |of it wi|ll only |
|00000e10| 62 65 20 72 65 6c 65 76 | 61 6e 74 20 74 6f 20 74 |be relev|ant to t|
|00000e20| 68 65 20 22 54 48 49 4e | 4b 22 20 63 61 6c 6c 2e |he "THIN|K" call.|
|00000e30| 0d 0d 54 68 65 20 6f 70 | 65 72 61 74 69 6f 6e 20 |..The op|eration |
|00000e40| 63 6f 64 65 73 2e 0d 7e | 7e 7e 7e 7e 7e 7e 7e 7e |codes..~|~~~~~~~~|
|00000e50| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 0d 30 3a 20 4f |~~~~~~~~|~~~.0: O|
|00000e60| 50 45 4e 2e 0d 54 68 65 | 20 66 69 72 73 74 20 63 |PEN..The| first c|
|00000e70| 61 6c 6c 2c 20 6d 61 64 | 65 20 6f 6e 63 65 2c 20 |all, mad|e once, |
|00000e80| 69 6d 6d 65 64 69 61 74 | 65 6c 79 20 61 66 74 65 |immediat|ely afte|
|00000e90| 72 20 74 68 65 20 43 4f | 44 45 20 72 65 73 6f 75 |r the CO|DE resou|
|00000ea0| 72 63 65 20 69 73 20 6c | 6f 61 64 65 64 20 69 6e |rce is l|oaded in|
|00000eb0| 74 6f 0d 6d 65 6d 6f 72 | 79 2e 20 49 66 20 79 6f |to.memor|y. If yo|
|00000ec0| 75 20 77 69 73 68 20 74 | 6f 20 6f 66 66 65 72 20 |u wish t|o offer |
|00000ed0| 75 73 65 72 2d 63 6f 6e | 66 69 67 75 72 61 62 69 |user-con|figurabi|
|00000ee0| 6c 69 74 79 2c 20 79 6f | 75 20 6d 61 79 20 61 64 |lity, yo|u may ad|
|00000ef0| 64 20 61 20 6d 65 6e 75 | 20 74 6f 20 74 68 65 0d |d a menu| to the.|
|00000f00| 6d 65 6e 75 20 62 61 72 | 2e 20 54 68 65 20 6d 65 |menu bar|. The me|
|00000f10| 6e 75 20 49 44 20 73 68 | 6f 75 6c 64 20 62 65 20 |nu ID sh|ould be |
|00000f20| 31 30 30 30 20 6f 72 20 | 67 72 65 61 74 65 72 2e |1000 or |greater.|
|00000f30| 20 49 66 20 79 6f 75 20 | 6e 65 65 64 20 74 6f 20 | If you |need to |
|00000f40| 75 73 65 20 68 69 65 72 | 61 72 63 68 69 63 61 6c |use hier|archical|
|00000f50| 0d 73 75 62 2d 6d 65 6e | 75 73 2c 20 79 6f 75 20 |.sub-men|us, you |
|00000f60| 63 61 6e 20 75 73 65 20 | 69 64 73 20 69 6e 20 74 |can use |ids in t|
|00000f70| 68 65 20 72 61 6e 67 65 | 20 32 30 30 2d 32 35 35 |he range| 200-255|
|00000f80| 2e 20 59 6f 75 20 6d 61 | 79 20 61 6c 6c 6f 63 61 |. You ma|y alloca|
|00000f90| 74 65 20 6d 65 6d 6f 72 | 79 20 66 6f 72 0d 77 6f |te memor|y for.wo|
|00000fa0| 72 6b 73 70 61 63 65 2c | 20 62 75 74 20 79 6f 75 |rkspace,| but you|
|00000fb0| 72 20 74 6f 74 61 6c 20 | 6d 65 6d 6f 72 79 20 75 |r total |memory u|
|00000fc0| 73 61 67 65 20 28 73 69 | 7a 65 20 6f 66 20 43 4f |sage (si|ze of CO|
|00000fd0| 44 45 20 72 65 73 6f 75 | 72 63 65 20 70 6c 75 73 |DE resou|rce plus|
|00000fe0| 20 73 69 7a 65 20 6f 66 | 0d 65 78 74 72 61 20 6d | size of|.extra m|
|00000ff0| 65 6d 6f 72 79 20 61 6c | 6c 6f 63 61 74 65 64 29 |emory al|located)|
|00001000| 20 6d 75 73 74 20 6e 6f | 74 20 65 78 63 65 65 64 | must no|t exceed|
|00001010| 20 33 32 4b 2e 20 49 66 | 20 79 6f 75 20 6e 65 65 | 32K. If| you nee|
|00001020| 64 20 6d 6f 72 65 20 74 | 68 61 6e 20 74 68 69 73 |d more t|han this|
|00001030| 2c 20 79 6f 75 0d 6d 75 | 73 74 20 75 73 65 20 22 |, you.mu|st use "|
|00001040| 4d 75 6c 74 69 46 69 6e | 64 65 72 20 54 65 6d 70 |MultiFin|der Temp|
|00001050| 6f 72 61 72 79 20 4d 65 | 6d 6f 72 79 22 20 28 73 |orary Me|mory" (s|
|00001060| 65 65 20 49 6e 73 69 64 | 65 20 4d 61 63 69 6e 74 |ee Insid|e Macint|
|00001070| 6f 73 68 20 56 49 20 32 | 38 2d 33 33 29 2e 0d 52 |osh VI 2|8-33)..R|
|00001080| 65 74 75 72 6e 20 7a 65 | 72 6f 20 69 66 20 69 6e |eturn ze|ro if in|
|00001090| 69 74 69 61 6c 69 7a 61 | 74 69 6f 6e 20 77 61 73 |itializa|tion was|
|000010a0| 20 73 75 63 63 65 73 73 | 66 75 6c 2c 20 6f 72 20 | success|ful, or |
|000010b0| 6e 6f 6e 2d 7a 65 72 6f | 20 69 66 20 69 74 20 66 |non-zero| if it f|
|000010c0| 61 69 6c 65 64 0d 28 65 | 67 2e 20 69 6e 73 75 66 |ailed.(e|g. insuf|
|000010d0| 66 69 63 69 65 6e 74 20 | 6d 65 6d 6f 72 79 29 2e |ficient |memory).|
|000010e0| 20 49 66 20 6e 6f 6e 2d | 7a 65 72 6f 20 69 73 20 | If non-|zero is |
|000010f0| 72 65 74 75 72 6e 65 64 | 2c 20 79 6f 75 72 20 63 |returned|, your c|
|00001100| 6f 64 65 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 0d |ode will| not be.|
|00001110| 63 61 6c 6c 65 64 20 61 | 67 61 69 6e 20 28 6e 6f |called a|gain (no|
|00001120| 74 20 65 76 65 6e 20 61 | 20 43 4c 4f 53 45 20 6d |t even a| CLOSE m|
|00001130| 65 73 73 61 67 65 29 2c | 20 73 6f 20 79 6f 75 20 |essage),| so you |
|00001140| 6d 75 73 74 20 74 69 64 | 79 20 75 70 20 62 65 66 |must tid|y up bef|
|00001150| 6f 72 65 20 72 65 74 75 | 72 6e 69 6e 67 2e 0d 0d |ore retu|rning...|
|00001160| 31 3a 20 43 4c 4f 53 45 | 2e 0d 43 61 6c 6c 65 64 |1: CLOSE|..Called|
|00001170| 20 6f 6e 63 65 20 61 73 | 20 74 68 65 20 66 69 6e | once as| the fin|
|00001180| 61 6c 20 63 61 6c 6c 20 | 77 68 65 6e 20 74 68 65 |al call |when the|
|00001190| 20 75 73 65 72 20 74 75 | 72 6e 73 20 6f 66 66 20 | user tu|rns off |
|000011a0| 79 6f 75 72 20 62 72 61 | 69 6e 2e 20 59 6f 75 20 |your bra|in. You |
|000011b0| 73 68 6f 75 6c 64 0d 65 | 6e 73 75 72 65 20 74 68 |should.e|nsure th|
|000011c0| 61 74 20 61 6c 6c 20 61 | 6c 6c 6f 63 61 74 65 64 |at all a|llocated|
|000011d0| 20 6d 65 6d 6f 72 79 20 | 69 73 20 72 65 6c 65 61 | memory |is relea|
|000011e0| 73 65 64 2c 20 61 6c 6c | 20 6d 65 6e 75 73 20 61 |sed, all| menus a|
|000011f0| 72 65 20 72 65 6d 6f 76 | 65 64 20 65 74 63 2e 0d |re remov|ed etc..|
|00001200| 0d 32 3a 20 54 48 49 4e | 4b 2e 0d 54 68 69 73 2c |.2: THIN|K..This,|
|00001210| 20 74 68 65 20 6d 6f 73 | 74 20 69 6d 70 6f 72 74 | the mos|t import|
|00001220| 61 6e 74 20 63 61 6c 6c | 2c 20 69 73 20 64 6f 6e |ant call|, is don|
|00001230| 65 20 61 73 20 66 72 65 | 71 75 65 6e 74 6c 79 20 |e as fre|quently |
|00001240| 61 73 20 74 68 65 20 6c | 6f 61 64 20 6f 6e 20 74 |as the l|oad on t|
|00001250| 68 65 0d 4d 61 63 69 6e | 74 6f 73 68 20 77 69 6c |he.Macin|tosh wil|
|00001260| 6c 20 61 6c 6c 6f 77 2e | 20 45 61 63 68 20 74 69 |l allow.| Each ti|
|00001270| 6d 65 2c 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |me, info|rmation |
|00001280| 64 65 73 63 72 69 62 69 | 6e 67 20 74 68 65 20 63 |describi|ng the c|
|00001290| 75 72 72 65 6e 74 20 73 | 74 61 72 74 20 6f 66 0d |urrent s|tart of.|
|000012a0| 74 68 65 20 77 6f 72 6c | 64 20 61 72 6f 75 6e 64 |the worl|d around|
|000012b0| 20 74 68 65 20 74 61 6e | 6b 20 69 73 20 67 69 76 | the tan|k is giv|
|000012c0| 65 6e 2c 20 61 6e 64 20 | 79 6f 75 72 20 63 6f 64 |en, and |your cod|
|000012d0| 65 20 73 68 6f 75 6c 64 | 20 64 65 63 69 64 65 20 |e should| decide |
|000012e0| 77 68 61 74 20 61 63 74 | 69 6f 6e 20 74 6f 0d 74 |what act|ion to.t|
|000012f0| 61 6b 65 2e 0d 0d 32 30 | 30 2b 3a 20 4d 45 4e 55 |ake...20|0+: MENU|
|00001300| 2e 0d 43 61 6c 6c 65 64 | 20 77 68 65 6e 20 74 68 |..Called| when th|
|00001310| 65 20 75 73 65 72 20 63 | 68 6f 6f 73 65 73 20 61 |e user c|hooses a|
|00001320| 6e 20 69 74 65 6d 20 66 | 72 6f 6d 20 79 6f 75 72 |n item f|rom your|
|00001330| 20 6d 65 6e 75 20 77 69 | 74 68 20 74 68 69 73 20 | menu wi|th this |
|00001340| 6d 65 6e 75 20 49 44 20 | 6e 75 6d 62 65 72 2e 0d |menu ID |number..|
|00001350| 54 68 65 20 6e 75 6d 62 | 65 72 20 6f 66 20 74 68 |The numb|er of th|
|00001360| 65 20 69 74 65 6d 20 77 | 68 69 63 68 20 77 61 73 |e item w|hich was|
|00001370| 20 73 65 6c 65 63 74 65 | 64 20 66 72 6f 6d 20 74 | selecte|d from t|
|00001380| 68 65 20 6d 65 6e 75 20 | 69 73 20 67 69 76 65 6e |he menu |is given|
|00001390| 20 69 6e 20 22 6d 65 6e | 75 5f 69 74 65 6d 22 2e | in "men|u_item".|
|000013a0| 0d 0d 54 68 65 20 54 48 | 49 4e 4b 20 6d 65 73 73 |..The TH|INK mess|
|000013b0| 61 67 65 2e 0d 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |age..~~~|~~~~~~~~|
|000013c0| 7e 7e 7e 7e 7e 7e 7e 0d | 45 76 65 72 79 20 74 69 |~~~~~~~.|Every ti|
|000013d0| 6d 65 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 6d |me throu|gh the m|
|000013e0| 61 69 6e 20 65 76 65 6e | 74 20 6c 6f 6f 70 2c 20 |ain even|t loop, |
|000013f0| 42 6f 6c 6f 20 77 69 6c | 6c 20 73 65 6e 64 20 79 |Bolo wil|l send y|
|00001400| 6f 75 20 61 20 54 48 49 | 4e 4b 20 6d 65 73 73 61 |ou a THI|NK messa|
|00001410| 67 65 2e 0d 54 68 69 73 | 20 6d 65 61 6e 73 20 74 |ge..This| means t|
|00001420| 68 61 74 20 79 6f 75 20 | 61 72 65 20 73 75 62 6a |hat you |are subj|
|00001430| 65 63 74 20 74 6f 20 74 | 68 65 20 76 61 67 61 72 |ect to t|he vagar|
|00001440| 69 65 73 20 6f 66 20 74 | 68 65 20 4d 61 63 69 6e |ies of t|he Macin|
|00001450| 74 6f 73 68 20 70 72 6f | 63 65 73 73 0d 73 63 68 |tosh pro|cess.sch|
|00001460| 65 64 75 6c 69 6e 67 20 | 6d 65 63 68 61 6e 69 73 |eduling |mechanis|
|00001470| 6d 2e 20 49 66 20 61 6e | 6f 74 68 65 72 20 61 70 |m. If an|other ap|
|00001480| 70 6c 69 63 61 74 69 6f | 6e 20 68 6f 6c 64 73 20 |plicatio|n holds |
|00001490| 74 68 65 20 43 50 55 20 | 66 6f 72 20 61 20 6c 6f |the CPU |for a lo|
|000014a0| 6e 67 20 74 69 6d 65 2c | 20 6f 72 0d 74 68 65 20 |ng time,| or.the |
|000014b0| 75 73 65 72 20 70 65 72 | 66 6f 72 6d 73 20 73 6f |user per|forms so|
|000014c0| 6d 65 20 61 63 74 69 6f | 6e 20 77 68 69 63 68 20 |me actio|n which |
|000014d0| 68 6f 67 73 20 74 68 65 | 20 6d 61 63 68 69 6e 65 |hogs the| machine|
|000014e0| 2c 20 74 68 65 6e 20 69 | 74 20 69 73 20 70 6f 73 |, then i|t is pos|
|000014f0| 73 69 62 6c 65 20 74 68 | 61 74 0d 79 6f 75 20 6d |sible th|at.you m|
|00001500| 69 67 68 74 20 6e 6f 74 | 20 67 65 74 20 61 6e 79 |ight not| get any|
|00001510| 20 63 61 6c 6c 73 20 66 | 6f 72 20 61 20 73 69 67 | calls f|or a sig|
|00001520| 6e 69 66 69 63 61 6e 74 | 20 6c 65 6e 67 74 68 20 |nificant| length |
|00001530| 6f 66 20 74 69 6d 65 2e | 20 59 6f 75 20 73 68 6f |of time.| You sho|
|00001540| 75 6c 64 20 62 65 0d 61 | 77 61 72 65 20 6f 66 20 |uld be.a|ware of |
|00001550| 74 68 69 73 20 6c 69 6d | 69 74 61 74 69 6f 6e 2c |this lim|itation,|
|00001560| 20 61 6e 64 20 75 73 65 | 72 73 20 73 68 6f 75 6c | and use|rs shoul|
|00001570| 64 20 62 65 20 61 77 61 | 72 65 20 74 68 61 74 20 |d be awa|re that |
|00001580| 69 66 20 74 68 65 79 20 | 6f 76 65 72 6c 6f 61 64 |if they |overload|
|00001590| 20 74 68 65 0d 6d 61 63 | 68 69 6e 65 20 74 68 65 | the.mac|hine the|
|000015a0| 6e 20 41 49 20 72 6f 75 | 74 69 6e 65 73 20 77 69 |n AI rou|tines wi|
|000015b0| 6c 6c 20 6e 6f 74 20 70 | 65 72 66 6f 72 6d 20 76 |ll not p|erform v|
|000015c0| 65 72 79 20 77 65 6c 6c | 2e 20 41 20 63 6f 72 6f |ery well|. A coro|
|000015d0| 6c 6c 61 72 79 20 6f 66 | 20 74 68 69 73 20 69 73 |llary of| this is|
|000015e0| 0d 74 68 61 74 20 59 4f | 55 20 63 61 6e 20 68 6f |.that YO|U can ho|
|000015f0| 67 20 74 68 65 20 43 50 | 55 20 66 6f 72 20 61 20 |g the CP|U for a |
|00001600| 6c 6f 6e 67 20 74 69 6d | 65 20 69 66 20 79 6f 75 |long tim|e if you|
|00001610| 20 77 69 73 68 2e 20 48 | 6f 77 65 76 65 72 2c 20 | wish. H|owever, |
|00001620| 42 6f 6c 6f 20 69 73 20 | 61 20 72 65 61 6c 2d 0d |Bolo is |a real-.|
|00001630| 74 69 6d 65 20 67 61 6d | 65 2e 20 49 66 20 79 6f |time gam|e. If yo|
|00001640| 75 20 73 70 65 6e 64 20 | 74 6f 6f 20 6c 6f 6e 67 |u spend |too long|
|00001650| 20 64 65 63 69 64 69 6e | 67 20 77 68 61 74 20 74 | decidin|g what t|
|00001660| 6f 20 64 6f 2c 20 74 68 | 65 6e 20 79 6f 75 72 20 |o do, th|en your |
|00001670| 74 61 6e 6b 20 77 69 6c | 6c 20 68 61 76 65 0d 62 |tank wil|l have.b|
|00001680| 65 65 6e 20 73 68 6f 74 | 20 61 6e 64 20 64 65 73 |een shot| and des|
|00001690| 74 72 6f 79 65 64 20 62 | 79 20 74 68 65 20 74 69 |troyed b|y the ti|
|000016a0| 6d 65 20 79 6f 75 20 6d | 61 6b 65 20 75 70 20 79 |me you m|ake up y|
|000016b0| 6f 75 72 20 6d 69 6e 64 | 2e 20 41 20 67 6f 6f 64 |our mind|. A good|
|000016c0| 20 67 75 69 64 65 6c 69 | 6e 65 20 69 73 0d 6e 6f | guideli|ne is.no|
|000016d0| 20 6d 6f 72 65 20 74 68 | 61 6e 20 61 20 74 65 6e | more th|an a ten|
|000016e0| 74 68 20 6f 66 20 61 20 | 73 65 63 6f 6e 64 20 6f |th of a |second o|
|000016f0| 66 20 74 68 69 6e 6b 69 | 6e 67 20 74 69 6d 65 20 |f thinki|ng time |
|00001700| 70 65 72 20 63 61 6c 6c | 2e 20 49 66 20 79 6f 75 |per call|. If you|
|00001710| 20 77 61 6e 74 20 74 6f | 20 62 65 0d 76 65 72 79 | want to| be.very|
|00001720| 20 61 6d 62 69 74 69 6f | 75 73 20 61 6e 64 20 64 | ambitio|us and d|
|00001730| 6f 20 64 79 6e 61 6d 69 | 63 20 61 64 6a 75 73 74 |o dynami|c adjust|
|00001740| 6d 65 6e 74 2c 20 79 6f | 75 20 63 61 6e 20 75 73 |ment, yo|u can us|
|00001750| 65 20 54 69 63 6b 43 6f | 75 6e 74 20 6f 72 20 74 |e TickCo|unt or t|
|00001760| 68 65 20 54 69 6d 65 0d | 4d 61 6e 61 67 65 72 20 |he Time.|Manager |
|00001770| 74 6f 20 6d 65 61 73 75 | 72 65 20 74 68 65 20 70 |to measu|re the p|
|00001780| 61 73 73 61 67 65 20 6f | 66 20 74 69 6d 65 2c 20 |assage o|f time, |
|00001790| 61 6e 64 20 72 65 74 75 | 72 6e 20 77 68 65 6e 20 |and retu|rn when |
|000017a0| 73 6f 6d 65 20 73 75 69 | 74 61 62 6c 65 20 6c 65 |some sui|table le|
|000017b0| 6e 67 74 68 0d 6f 66 20 | 74 69 6d 65 20 68 61 73 |ngth.of |time has|
|000017c0| 20 70 61 73 73 65 64 2e | 0d 0d 54 68 65 20 69 6e | passed.|..The in|
|000017d0| 66 6f 72 6d 61 74 69 6f | 6e 20 79 6f 75 20 61 72 |formatio|n you ar|
|000017e0| 65 20 70 61 73 73 65 64 | 20 69 73 20 62 61 73 69 |e passed| is basi|
|000017f0| 63 61 6c 6c 79 20 61 20 | 73 6f 66 74 77 61 72 65 |cally a |software|
|00001800| 20 69 6e 74 65 72 66 61 | 63 65 20 74 6f 20 74 68 | interfa|ce to th|
|00001810| 65 0d 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 74 68 |e.inform|ation th|
|00001820| 61 74 20 61 20 68 75 6d | 61 6e 20 70 6c 61 79 65 |at a hum|an playe|
|00001830| 72 20 68 61 73 20 61 76 | 61 69 6c 61 62 6c 65 20 |r has av|ailable |
|00001840| 76 69 73 75 61 6c 6c 79 | 2e 0d 0d 54 68 65 20 6d |visually|...The m|
|00001850| 61 78 69 6d 75 6d 20 6e | 75 6d 62 65 72 20 6f 66 |aximum n|umber of|
|00001860| 20 70 6c 61 79 65 72 73 | 20 69 73 20 67 69 76 65 | players| is give|
|00001870| 6e 20 62 65 63 61 75 73 | 65 20 69 74 20 63 6f 6e |n becaus|e it con|
|00001880| 74 72 6f 6c 73 20 74 68 | 65 20 73 69 7a 65 20 6f |trols th|e size o|
|00001890| 66 20 74 68 65 0d 70 6c | 61 79 65 72 20 62 69 74 |f the.pl|ayer bit|
|000018a0| 6d 61 70 20 73 74 72 75 | 63 74 75 72 65 73 20 75 |map stru|ctures u|
|000018b0| 73 65 64 20 66 6f 72 20 | 6d 65 73 73 61 67 65 73 |sed for |messages|
|000018c0| 20 61 6e 64 20 61 6c 6c | 69 61 6e 63 65 73 2e 20 | and all|iances. |
|000018d0| 49 74 20 6d 61 79 20 61 | 6c 73 6f 20 62 65 0d 75 |It may a|lso be.u|
|000018e0| 73 65 66 75 6c 20 74 6f | 20 64 65 74 65 72 6d 69 |seful to| determi|
|000018f0| 6e 65 20 79 6f 75 72 20 | 6d 65 6d 6f 72 79 20 61 |ne your |memory a|
|00001900| 6c 6c 6f 63 61 74 69 6f | 6e 20 6e 65 65 64 73 2e |llocatio|n needs.|
|00001910| 0d 0d 59 6f 75 20 61 72 | 65 20 74 6f 6c 64 20 79 |..You ar|e told y|
|00001920| 6f 75 72 20 74 61 6e 6b | d5 73 20 63 75 72 72 65 |our tank|.s curre|
|00001930| 6e 74 20 70 6f 73 69 74 | 69 6f 6e 2c 20 73 70 65 |nt posit|ion, spe|
|00001940| 65 64 2c 20 64 69 72 65 | 63 74 69 6f 6e 2c 20 77 |ed, dire|ction, w|
|00001950| 68 65 74 68 65 72 20 69 | 74 20 69 73 0d 6f 6e 20 |hether i|t is.on |
|00001960| 61 20 62 6f 61 74 20 65 | 74 63 2e 0d 59 6f 75 20 |a boat e|tc..You |
|00001970| 61 72 65 20 74 6f 6c 64 | 20 79 6f 75 72 20 63 75 |are told| your cu|
|00001980| 72 72 65 6e 74 20 74 61 | 6e 6b 20 73 74 6f 63 6b |rrent ta|nk stock|
|00001990| 73 20 61 6e 64 20 6f 74 | 68 65 72 20 73 74 61 74 |s and ot|her stat|
|000019a0| 75 73 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 2e 0d |us infor|mation..|
|000019b0| 0d 49 66 20 6e 65 77 74 | 61 6e 6b 20 69 73 20 6e |.If newt|ank is n|
|000019c0| 6f 6e 2d 7a 65 72 6f 20 | 69 74 20 69 6e 64 69 63 |on-zero |it indic|
|000019d0| 61 74 65 73 20 74 68 61 | 74 20 79 6f 75 72 20 74 |ates tha|t your t|
|000019e0| 61 6e 6b 20 77 61 73 20 | 6a 75 73 74 20 6b 69 6c |ank was |just kil|
|000019f0| 6c 65 64 2c 20 61 6e 64 | 20 74 68 69 73 0d 69 73 |led, and| this.is|
|00001a00| 20 6e 65 77 20 74 61 6e | 6b 20 79 6f 75 20 61 72 | new tan|k you ar|
|00001a10| 65 20 63 6f 6e 74 72 6f | 6c 6c 69 6e 67 2e 20 54 |e contro|lling. T|
|00001a20| 68 69 73 20 69 73 20 64 | 6f 6e 65 20 73 6f 20 74 |his is d|one so t|
|00001a30| 68 61 74 20 79 6f 75 72 | 20 61 6c 67 6f 72 69 74 |hat your| algorit|
|00001a40| 68 6d 20 69 73 20 6e 6f | 74 0d 68 6f 70 65 6c 65 |hm is no|t.hopele|
|00001a50| 73 73 6c 79 20 63 6f 6e | 66 75 73 65 64 20 74 6f |ssly con|fused to|
|00001a60| 20 66 69 6e 64 20 69 74 | 73 65 6c 66 20 73 75 64 | find it|self sud|
|00001a70| 64 65 6e 6c 79 20 6f 6e | 20 61 20 62 6f 61 74 20 |denly on| a boat |
|00001a80| 6f 75 74 20 69 6e 20 74 | 68 65 20 64 65 65 70 20 |out in t|he deep |
|00001a90| 73 65 61 2e 0d 59 6f 75 | 72 20 66 69 72 73 74 20 |sea..You|r first |
|00001aa0| 54 48 49 4e 4b 20 6d 65 | 73 73 61 67 65 20 61 66 |THINK me|ssage af|
|00001ab0| 74 65 72 20 74 68 65 20 | 4f 50 45 4e 20 63 61 6c |ter the |OPEN cal|
|00001ac0| 6c 20 77 69 6c 6c 20 68 | 61 76 65 20 74 68 69 73 |l will h|ave this|
|00001ad0| 20 27 6e 65 77 20 74 61 | 6e 6b 27 0d 69 6e 64 69 | 'new ta|nk'.indi|
|00001ae0| 63 61 74 69 6f 6e 20 73 | 65 74 2e 0d 0d 49 66 20 |cation s|et...If |
|00001af0| 74 68 65 72 65 20 69 73 | 20 61 20 66 72 69 65 6e |there is| a frien|
|00001b00| 64 6c 79 20 62 61 73 65 | 20 77 69 74 68 69 6e 20 |dly base| within |
|00001b10| 72 61 6e 67 65 2c 20 74 | 68 65 6e 20 69 74 73 20 |range, t|hen its |
|00001b20| 70 6f 73 69 74 69 6f 6e | 20 61 6e 64 20 73 74 6f |position| and sto|
|00001b30| 63 6b 73 20 61 72 65 0d | 67 69 76 65 6e 2e 20 4f |cks are.|given. O|
|00001b40| 74 68 65 72 77 69 73 65 | 20 62 61 73 65 20 77 69 |therwise| base wi|
|00001b50| 6c 6c 20 62 65 20 4e 55 | 4c 4c 2e 0d 0d 49 66 20 |ll be NU|LL...If |
|00001b60| 6d 61 6e 5f 73 74 61 74 | 75 73 20 69 73 20 7a 65 |man_stat|us is ze|
|00001b70| 72 6f 2c 20 74 68 65 20 | 6d 61 6e 20 69 73 20 69 |ro, the |man is i|
|00001b80| 6e 20 74 68 65 20 74 61 | 6e 6b 2c 20 72 65 61 64 |n the ta|nk, read|
|00001b90| 79 20 66 6f 72 20 61 63 | 74 69 6f 6e 2e 20 49 66 |y for ac|tion. If|
|00001ba0| 20 6d 61 6e 5f 73 74 61 | 74 75 73 0d 69 73 20 6f | man_sta|tus.is o|
|00001bb0| 6e 65 2c 20 74 68 65 6e | 20 79 6f 75 72 20 6d 61 |ne, then| your ma|
|00001bc0| 6e 20 69 73 20 64 65 61 | 64 20 61 6e 64 20 61 20 |n is dea|d and a |
|00001bd0| 6e 65 77 20 6d 61 6e 20 | 69 73 20 70 61 72 61 63 |new man |is parac|
|00001be0| 68 75 74 69 6e 67 20 69 | 6e 2e 20 49 66 20 6d 61 |huting i|n. If ma|
|00001bf0| 6e 5f 73 74 61 74 75 73 | 0d 69 73 20 61 6e 79 20 |n_status|.is any |
|00001c00| 6f 74 68 65 72 20 76 61 | 6c 75 65 2c 20 74 68 65 |other va|lue, the|
|00001c10| 6e 20 74 68 65 20 6d 61 | 6e 20 69 73 20 6f 75 74 |n the ma|n is out|
|00001c20| 73 69 64 65 20 74 68 65 | 20 74 61 6e 6b 2c 20 62 |side the| tank, b|
|00001c30| 75 69 6c 64 69 6e 67 2c | 20 69 6e 20 77 68 69 63 |uilding,| in whic|
|00001c40| 68 20 63 61 73 65 0d 6d | 61 6e 5f 64 69 72 65 63 |h case.m|an_direc|
|00001c50| 74 69 6f 6e 20 67 69 76 | 65 73 20 74 68 65 20 64 |tion giv|es the d|
|00001c60| 69 72 65 63 74 69 6f 6e | 20 6f 66 20 74 72 61 76 |irection| of trav|
|00001c70| 65 6c 20 6f 66 20 74 68 | 65 20 6d 61 6e 2c 20 61 |el of th|e man, a|
|00001c80| 6e 64 20 28 6d 61 6e 5f | 78 2c 20 6d 61 6e 5f 79 |nd (man_|x, man_y|
|00001c90| 29 0d 67 69 76 65 73 20 | 68 69 73 20 63 75 72 72 |).gives |his curr|
|00001ca0| 65 6e 74 20 70 6f 73 69 | 74 69 6f 6e 2e 0d 0d 49 |ent posi|tion...I|
|00001cb0| 66 20 28 2a 70 69 6c 6c | 76 69 65 77 29 20 69 73 |f (*pill|view) is|
|00001cc0| 20 6e 6f 6e 2d 6e 65 67 | 61 74 69 76 65 2c 20 74 | non-neg|ative, t|
|00001cd0| 68 65 6e 20 74 68 65 20 | 76 69 65 77 20 79 6f 75 |hen the |view you|
|00001ce0| 20 61 72 65 20 67 69 76 | 65 6e 20 69 73 20 63 65 | are giv|en is ce|
|00001cf0| 6e 74 72 65 64 20 6f 6e | 20 74 68 65 0d 70 69 6c |ntred on| the.pil|
|00001d00| 6c 62 6f 78 20 77 69 74 | 68 20 74 68 65 20 67 69 |lbox wit|h the gi|
|00001d10| 76 65 6e 20 6e 75 6d 62 | 65 72 2e 20 49 66 20 28 |ven numb|er. If (|
|00001d20| 2a 70 69 6c 6c 76 69 65 | 77 29 20 69 73 20 2d 31 |*pillvie|w) is -1|
|00001d30| 20 74 68 65 6e 20 74 68 | 65 20 76 69 65 77 20 69 | then th|e view i|
|00001d40| 73 20 63 65 6e 74 72 65 | 64 20 6f 6e 0d 79 6f 75 |s centre|d on.you|
|00001d50| 72 20 74 61 6e 6b 2e 20 | 54 6f 20 63 68 61 6e 67 |r tank. |To chang|
|00001d60| 65 20 77 68 65 72 65 20 | 79 6f 75 72 20 6e 65 78 |e where |your nex|
|00001d70| 74 20 76 69 65 77 20 77 | 69 6c 6c 20 63 6f 6d 65 |t view w|ill come|
|00001d80| 20 66 72 6f 6d 2c 20 73 | 65 74 20 28 2a 70 69 6c | from, s|et (*pil|
|00001d90| 6c 76 69 65 77 29 20 74 | 6f 0d 74 68 65 20 64 65 |lview) t|o.the de|
|00001da0| 73 69 72 65 64 20 76 61 | 6c 75 65 2e 20 59 6f 75 |sired va|lue. You|
|00001db0| 20 6d 61 79 20 61 74 74 | 65 6d 70 74 20 74 6f 20 | may att|empt to |
|00001dc0| 76 69 65 77 20 66 72 6f | 6d 20 61 20 64 65 61 64 |view fro|m a dead|
|00001dd0| 20 70 69 6c 6c 62 6f 78 | 20 28 6f 72 20 6f 6e 65 | pillbox| (or one|
|00001de0| 20 79 6f 75 0d 64 6f 6e | 27 74 20 6f 77 6e 29 20 | you.don|'t own) |
|00001df0| 69 66 20 79 6f 75 20 77 | 69 73 68 2c 20 62 75 74 |if you w|ish, but|
|00001e00| 20 79 6f 75 20 77 69 6c | 6c 20 6e 6f 74 20 73 65 | you wil|l not se|
|00001e10| 65 20 61 6e 79 74 68 69 | 6e 67 2e 0d 0d 54 68 65 |e anythi|ng...The|
|00001e20| 20 61 72 72 61 79 20 6f | 66 20 54 45 52 52 41 49 | array o|f TERRAI|
|00001e30| 4e 20 73 71 75 61 72 65 | 73 20 69 73 20 67 69 76 |N square|s is giv|
|00001e40| 65 6e 20 61 73 20 68 6f | 72 69 7a 6f 6e 74 61 6c |en as ho|rizontal|
|00001e50| 20 72 6f 77 73 2c 20 66 | 72 6f 6d 20 74 6f 70 20 | rows, f|rom top |
|00001e60| 74 6f 20 62 6f 74 74 6f | 6d 2c 0d 77 69 74 68 20 |to botto|m,.with |
|00001e70| 74 68 65 20 73 71 75 61 | 72 65 73 20 72 75 6e 6e |the squa|res runn|
|00001e80| 69 6e 67 20 6c 65 66 74 | 20 74 6f 20 72 69 67 68 |ing left| to righ|
|00001e90| 74 20 69 6e 20 65 61 63 | 68 20 72 6f 77 20 28 73 |t in eac|h row (s|
|00001ea0| 69 6d 69 6c 61 72 20 74 | 6f 20 74 68 65 20 6d 61 |imilar t|o the ma|
|00001eb0| 70 20 66 69 6c 65 0d 66 | 6f 72 6d 61 74 29 2e 20 |p file.f|ormat). |
|00001ec0| 54 68 65 20 6d 61 70 20 | 76 69 65 77 20 69 6e 66 |The map |view inf|
|00001ed0| 6f 72 6d 61 74 69 6f 6e | 20 73 68 6f 77 73 20 79 |ormation| shows y|
|00001ee0| 6f 75 20 65 76 65 72 79 | 74 68 69 6e 67 20 77 69 |ou every|thing wi|
|00001ef0| 74 68 69 6e 20 31 34 20 | 73 71 75 61 72 65 73 20 |thin 14 |squares |
|00001f00| 6f 66 20 74 68 65 0d 74 | 61 6e 6b 20 2d 2d 20 69 |of the.t|ank -- i|
|00001f10| 65 20 61 6e 79 74 68 69 | 6e 67 20 61 20 68 75 6d |e anythi|ng a hum|
|00001f20| 61 6e 20 63 6f 75 6c 64 | 20 73 65 65 20 62 79 20 |an could| see by |
|00001f30| 73 63 72 6f 6c 6c 69 6e | 67 20 74 68 65 20 74 61 |scrollin|g the ta|
|00001f40| 6e 6b 20 76 69 65 77 20 | 61 72 6f 75 6e 64 20 77 |nk view |around w|
|00001f50| 69 74 68 0d 74 68 65 20 | 63 75 72 73 6f 72 20 6b |ith.the |cursor k|
|00001f60| 65 79 73 2e 20 46 6f 72 | 20 70 69 6c 6c 62 6f 78 |eys. For| pillbox|
|00001f70| 20 76 69 65 77 73 2c 20 | 74 68 65 20 76 69 73 69 | views, |the visi|
|00001f80| 62 69 6c 69 74 79 20 72 | 61 6e 67 65 20 69 73 20 |bility r|ange is |
|00001f90| 72 65 73 74 72 69 63 74 | 65 64 20 74 6f 20 37 0d |restrict|ed to 7.|
|00001fa0| 73 71 75 61 72 65 73 20 | 69 6e 20 65 76 65 72 79 |squares |in every|
|00001fb0| 20 64 69 72 65 63 74 69 | 6f 6e 2c 20 61 73 20 69 | directi|on, as i|
|00001fc0| 74 20 69 73 20 66 6f 72 | 20 68 75 6d 61 6e 73 2e |t is for| humans.|
|00001fd0| 0d 54 68 65 20 62 79 74 | 65 73 20 6f 66 20 74 68 |.The byt|es of th|
|00001fe0| 65 20 61 72 72 61 79 20 | 68 61 76 65 20 74 68 65 |e array |have the|
|00001ff0| 20 76 61 6c 75 65 73 20 | 67 69 76 65 6e 20 62 65 | values |given be|
|00002000| 6c 6f 77 2e 20 54 68 65 | 20 74 6f 70 20 62 69 74 |low. The| top bit|
|00002010| 20 6f 66 20 74 68 65 20 | 62 79 74 65 0d 77 69 6c | of the |byte.wil|
|00002020| 6c 20 62 65 20 73 65 74 | 20 69 66 20 74 68 65 20 |l be set| if the |
|00002030| 73 71 75 61 72 65 20 68 | 61 73 20 61 20 6d 69 6e |square h|as a min|
|00002040| 65 20 28 74 68 61 74 20 | 79 6f 75 20 63 61 6e 20 |e (that |you can |
|00002050| 73 65 65 29 20 6f 6e 20 | 69 74 2e 0d 0d 74 79 70 |see) on |it...typ|
|00002060| 65 64 65 66 20 42 59 54 | 45 20 54 45 52 52 41 49 |edef BYT|E TERRAI|
|00002070| 4e 3b 0d 65 6e 75 6d 0d | 09 7b 0d 09 42 55 49 4c |N;.enum.|.{..BUIL|
|00002080| 44 49 4e 47 3d 30 2c 20 | 52 49 56 45 52 2c 20 53 |DING=0, |RIVER, S|
|00002090| 57 41 4d 50 2c 20 43 52 | 41 54 45 52 2c 20 52 4f |WAMP, CR|ATER, RO|
|000020a0| 41 44 2c 20 46 4f 52 45 | 53 54 2c 20 52 55 42 42 |AD, FORE|ST, RUBB|
|000020b0| 4c 45 2c 20 47 52 41 53 | 53 2c 0d 09 48 41 4c 46 |LE, GRAS|S,..HALF|
|000020c0| 42 55 49 4c 44 49 4e 47 | 2c 20 42 4f 41 54 2c 20 |BUILDING|, BOAT, |
|000020d0| 44 45 45 50 53 45 41 2c | 20 52 45 46 42 41 53 45 |DEEPSEA,| REFBASE|
|000020e0| 5f 54 2c 20 50 49 4c 4c | 42 4f 58 5f 54 2c 0d 09 |_T, PILL|BOX_T,..|
|000020f0| 4e 55 4d 5f 54 45 52 52 | 41 49 4e 53 2c 0d 09 54 |NUM_TERR|AINS,..T|
|00002100| 45 52 52 41 49 4e 5f 4d | 41 53 4b 20 3d 20 30 78 |ERRAIN_M|ASK = 0x|
|00002110| 46 2c 0d 09 54 45 52 52 | 41 49 4e 5f 4d 49 4e 45 |F,..TERR|AIN_MINE|
|00002120| 20 3d 20 30 78 38 30 2c | 0d 09 7d 3b 0d 0d 46 6f | = 0x80,|..};..Fo|
|00002130| 72 20 65 61 63 68 20 6f | 62 6a 65 63 74 20 79 6f |r each o|bject yo|
|00002140| 75 20 63 61 6e 20 73 65 | 65 2c 20 79 6f 75 20 61 |u can se|e, you a|
|00002150| 72 65 20 74 6f 6c 64 20 | 69 74 73 20 70 6f 73 69 |re told |its posi|
|00002160| 74 69 6f 6e 2c 20 61 6e | 64 20 73 6f 6d 65 20 69 |tion, an|d some i|
|00002170| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0d 59 6f 75 72 |nformati|on..Your|
|00002180| 20 6f 77 6e 20 74 61 6e | 6b 20 69 73 20 6e 6f 74 | own tan|k is not|
|00002190| 20 69 6e 63 6c 75 64 65 | 64 20 69 6e 20 74 68 65 | include|d in the|
|000021a0| 20 61 72 72 61 79 20 6f | 66 20 6f 62 6a 65 63 74 | array o|f object|
|000021b0| 73 2e 20 41 6c 6c 20 66 | 72 69 65 6e 64 6c 79 20 |s. All f|riendly |
|000021c0| 70 69 6c 6c 62 6f 78 65 | 73 0d 61 6e 64 20 62 61 |pillboxe|s.and ba|
|000021d0| 73 65 73 20 61 72 65 20 | 69 6e 63 6c 75 64 65 64 |ses are |included|
|000021e0| 20 69 6e 20 74 68 65 20 | 61 72 72 61 79 2c 20 65 | in the |array, e|
|000021f0| 76 65 6e 20 69 66 20 63 | 75 72 72 65 6e 74 6c 79 |ven if c|urrently|
|00002200| 20 62 65 79 6f 6e 64 20 | 76 69 73 75 61 6c 20 72 | beyond |visual r|
|00002210| 61 6e 67 65 2e 0d 0d 74 | 79 70 65 64 65 66 20 75 |ange...t|ypedef u|
|00002220| 5f 73 68 6f 72 74 20 4f | 42 4a 45 43 54 3b 0d 65 |_short O|BJECT;.e|
|00002230| 6e 75 6d 0d 09 7b 0d 09 | 4f 42 4a 45 43 54 5f 54 |num..{..|OBJECT_T|
|00002240| 41 4e 4b 3d 30 2c 0d 09 | 4f 42 4a 45 43 54 5f 53 |ANK=0,..|OBJECT_S|
|00002250| 48 4f 54 2c 0d 09 4f 42 | 4a 45 43 54 5f 50 49 4c |HOT,..OB|JECT_PIL|
|00002260| 4c 42 4f 58 2c 0d 09 4f | 42 4a 45 43 54 5f 52 45 |LBOX,..O|BJECT_RE|
|00002270| 46 42 41 53 45 2c 0d 09 | 4f 42 4a 45 43 54 5f 42 |FBASE,..|OBJECT_B|
|00002280| 55 49 4c 44 4d 41 4e 2c | 0d 09 4f 42 4a 45 43 54 |UILDMAN,|..OBJECT|
|00002290| 5f 50 41 52 41 43 48 55 | 54 45 0d 09 7d 3b 0d 23 |_PARACHU|TE..};.#|
|000022a0| 64 65 66 69 6e 65 20 4f | 42 4a 45 43 54 5f 48 4f |define O|BJECT_HO|
|000022b0| 53 54 49 4c 45 20 31 09 | 2f 2f 20 4f 62 6a 65 63 |STILE 1.|// Objec|
|000022c0| 74 20 69 73 20 68 6f 73 | 74 69 6c 65 20 74 6f 20 |t is hos|tile to |
|000022d0| 75 73 0d 23 64 65 66 69 | 6e 65 20 4f 42 4a 45 43 |us.#defi|ne OBJEC|
|000022e0| 54 5f 4e 45 55 54 52 41 | 4c 20 32 09 2f 2f 20 4f |T_NEUTRA|L 2.// O|
|000022f0| 62 6a 65 63 74 20 69 73 | 20 6e 6f 74 20 6c 6f 79 |bject is| not loy|
|00002300| 61 6c 20 74 6f 20 61 6e | 79 20 6f 74 68 65 72 20 |al to an|y other |
|00002310| 70 6c 61 79 65 72 0d 2f | 2f 20 4e 6f 74 65 20 74 |player./|/ Note t|
|00002320| 68 61 74 20 62 65 69 6e | 67 20 6e 65 75 74 72 61 |hat bein|g neutra|
|00002330| 6c 20 6d 65 61 6e 73 20 | 74 68 61 74 20 61 6e 20 |l means |that an |
|00002340| 6f 62 6a 65 63 74 20 68 | 61 73 20 6e 6f 20 70 61 |object h|as no pa|
|00002350| 72 74 69 63 75 6c 61 72 | 20 6c 6f 79 61 6c 74 79 |rticular| loyalty|
|00002360| 0d 2f 2f 20 74 6f 20 61 | 6e 79 20 70 6c 61 79 65 |.// to a|ny playe|
|00002370| 72 20 2d 2d 20 77 68 65 | 74 68 65 72 20 69 74 20 |r -- whe|ther it |
|00002380| 69 73 20 68 6f 73 74 69 | 6c 65 20 6f 72 20 66 72 |is hosti|le or fr|
|00002390| 69 65 6e 64 6c 79 20 74 | 6f 20 75 73 20 69 73 20 |iendly t|o us is |
|000023a0| 61 6e 20 6f 72 74 68 6f | 67 6f 6e 61 6c 0d 2f 2f |an ortho|gonal.//|
|000023b0| 20 71 75 65 73 74 69 6f | 6e 2e 20 43 75 72 72 65 | questio|n. Curre|
|000023c0| 6e 74 6c 79 2c 20 6e 65 | 75 74 72 61 6c 20 72 65 |ntly, ne|utral re|
|000023d0| 66 75 65 6c 6c 69 6e 67 | 20 62 61 73 65 73 20 61 |fuelling| bases a|
|000023e0| 72 65 20 66 72 69 65 6e | 64 6c 79 20 74 6f 20 65 |re frien|dly to e|
|000023f0| 76 65 72 79 6f 6e 65 0d | 2f 2f 20 61 6e 64 20 6e |veryone.|// and n|
|00002400| 65 75 74 72 61 6c 20 70 | 69 6c 6c 62 6f 78 65 73 |eutral p|illboxes|
|00002410| 20 61 72 65 20 68 6f 73 | 74 69 6c 65 20 74 6f 20 | are hos|tile to |
|00002420| 65 76 65 72 79 6f 6e 65 | 2e 0d 0d 74 79 70 65 64 |everyone|...typed|
|00002430| 65 66 20 73 74 72 75 63 | 74 0d 09 7b 0d 09 4f 42 |ef struc|t..{..OB|
|00002440| 4a 45 43 54 20 6f 62 6a | 65 63 74 3b 0d 09 57 4f |JECT obj|ect;..WO|
|00002450| 52 4c 44 5f 58 20 78 3b | 0d 09 57 4f 52 4c 44 5f |RLD_X x;|..WORLD_|
|00002460| 59 20 79 3b 0d 09 57 4f | 52 44 20 69 64 6e 75 6d |Y y;..WO|RD idnum|
|00002470| 3b 0d 09 42 59 54 45 20 | 64 69 72 65 63 74 69 6f |;..BYTE |directio|
|00002480| 6e 3b 0d 09 42 59 54 45 | 20 69 6e 66 6f 3b 0d 09 |n;..BYTE| info;..|
|00002490| 7d 20 4f 62 6a 65 63 74 | 49 6e 66 6f 3b 0d 0d 46 |} Object|Info;..F|
|000024a0| 6f 72 20 74 61 6e 6b 73 | 2c 20 70 69 6c 6c 62 6f |or tanks|, pillbo|
|000024b0| 78 65 73 2c 20 72 65 66 | 75 65 6c 6c 69 6e 67 20 |xes, ref|uelling |
|000024c0| 62 61 73 65 73 2c 20 61 | 6e 64 20 6d 65 6e 2c 20 |bases, a|nd men, |
|000024d0| 61 6e 20 69 64 65 6e 74 | 69 66 79 69 6e 67 20 6e |an ident|ifying n|
|000024e0| 75 6d 62 65 72 20 69 73 | 0d 67 69 76 65 6e 2c 20 |umber is|.given, |
|000024f0| 77 68 69 63 68 20 72 61 | 6e 67 65 73 20 66 72 6f |which ra|nges fro|
|00002500| 6d 20 7a 65 72 6f 20 74 | 6f 20 74 68 65 20 6e 75 |m zero t|o the nu|
|00002510| 6d 62 65 72 20 6f 66 20 | 74 68 61 74 20 6b 69 6e |mber of |that kin|
|00002520| 64 20 6f 66 20 6f 62 6a | 65 63 74 20 6d 69 6e 75 |d of obj|ect minu|
|00002530| 73 20 6f 6e 65 2e 0d 4f | 6e 65 20 75 73 65 66 75 |s one..O|ne usefu|
|00002540| 6c 20 66 61 63 74 20 69 | 73 20 74 68 61 74 20 6d |l fact i|s that m|
|00002550| 61 6e 20 6e 75 6d 62 65 | 72 20 6e 20 69 73 20 6f |an numbe|r n is o|
|00002560| 77 6e 65 64 20 62 79 20 | 74 61 6e 6b 20 6e 75 6d |wned by |tank num|
|00002570| 62 65 72 20 6e 2e 0d 0d | 46 6f 72 20 74 61 6e 6b |ber n...|For tank|
|00002580| 73 20 61 6e 64 20 73 68 | 6f 74 73 20 74 68 65 20 |s and sh|ots the |
|00002590| 61 70 70 72 6f 78 69 6d | 61 74 65 20 64 69 72 65 |approxim|ate dire|
|000025a0| 63 74 69 6f 6e 20 6f 66 | 20 74 72 61 76 65 6c 20 |ction of| travel |
|000025b0| 69 73 20 67 69 76 65 6e | 2e 0d 46 6f 72 20 70 69 |is given|..For pi|
|000025c0| 6c 6c 62 6f 78 65 73 20 | 74 68 65 20 27 64 69 72 |llboxes |the 'dir|
|000025d0| 65 63 74 69 6f 6e 27 20 | 76 61 6c 75 65 20 67 69 |ection' |value gi|
|000025e0| 76 65 73 20 74 68 65 20 | 70 69 6c 6c 62 6f 78 27 |ves the |pillbox'|
|000025f0| 73 20 63 75 72 72 65 6e | 74 20 73 74 72 65 6e 67 |s curren|t streng|
|00002600| 74 68 2c 20 69 6e 0d 74 | 68 65 20 72 61 6e 67 65 |th, in.t|he range|
|00002610| 20 30 2d 31 35 2c 20 61 | 73 20 63 61 6e 20 62 65 | 0-15, a|s can be|
|00002620| 20 64 65 74 65 72 6d 69 | 6e 65 64 20 62 79 20 68 | determi|ned by h|
|00002630| 75 6d 61 6e 20 70 6c 61 | 79 65 72 73 20 6c 6f 6f |uman pla|yers loo|
|00002640| 6b 69 6e 67 20 61 74 20 | 74 68 65 20 67 72 61 70 |king at |the grap|
|00002650| 68 69 63 73 0d 6f 6e 20 | 74 68 65 20 73 63 72 65 |hics.on |the scre|
|00002660| 65 6e 2e 0d 46 6f 72 20 | 72 65 66 75 6c 69 6e 67 |en..For |refuling|
|00002670| 20 62 61 73 65 73 2c 20 | 74 68 65 20 27 64 69 72 | bases, |the 'dir|
|00002680| 65 63 74 69 6f 6e 27 20 | 76 61 6c 75 65 20 77 69 |ection' |value wi|
|00002690| 6c 6c 20 62 65 20 7a 65 | 72 6f 20 69 66 20 74 68 |ll be ze|ro if th|
|000026a0| 65 20 62 61 73 65 20 69 | 73 20 64 65 61 64 0d 61 |e base i|s dead.a|
|000026b0| 6e 64 20 63 61 70 74 75 | 72 61 62 6c 65 2c 20 61 |nd captu|rable, a|
|000026c0| 6e 64 20 6e 6f 6e 2d 7a | 65 72 6f 20 6f 74 68 65 |nd non-z|ero othe|
|000026d0| 72 77 69 73 65 2e 20 55 | 6e 6c 69 6b 65 20 70 69 |rwise. U|nlike pi|
|000026e0| 6c 6c 62 6f 78 65 73 2c | 20 69 74 20 64 6f 65 73 |llboxes,| it does|
|000026f0| 20 6e 6f 74 20 74 65 6c | 6c 0d 79 6f 75 20 74 68 | not tel|l.you th|
|00002700| 65 20 65 78 61 63 74 20 | 73 74 72 65 6e 67 74 68 |e exact |strength|
|00002710| 20 6f 66 20 74 68 65 20 | 62 61 73 65 2c 20 6f 6e | of the |base, on|
|00002720| 6c 79 20 61 20 72 6f 75 | 67 68 20 61 70 70 72 6f |ly a rou|gh appro|
|00002730| 78 69 6d 61 74 69 6f 6e | 2e 0d 46 6f 72 20 62 75 |ximation|..For bu|
|00002740| 69 6c 64 69 6e 67 20 6d | 65 6e 2c 20 74 68 65 20 |ilding m|en, the |
|00002750| 27 64 69 72 65 63 74 69 | 6f 6e 27 20 76 61 6c 75 |'directi|on' valu|
|00002760| 65 20 69 73 20 75 6e 75 | 73 65 64 2e 0d 0d 42 69 |e is unu|sed...Bi|
|00002770| 74 20 30 20 6f 66 20 74 | 68 65 20 69 6e 66 6f 20 |t 0 of t|he info |
|00002780| 66 69 65 6c 64 20 28 4f | 42 4a 45 43 54 5f 48 4f |field (O|BJECT_HO|
|00002790| 53 54 49 4c 45 29 20 69 | 73 20 73 65 74 20 69 66 |STILE) i|s set if|
|000027a0| 20 74 68 65 20 6f 62 6a | 65 63 74 20 69 73 20 68 | the obj|ect is h|
|000027b0| 6f 73 74 69 6c 65 2c 0d | 20 20 20 20 20 20 61 6e |ostile,.| an|
|000027c0| 64 20 63 6c 65 61 72 20 | 69 66 20 69 74 20 69 73 |d clear |if it is|
|000027d0| 20 66 72 69 65 6e 64 6c | 79 2e 0d 42 69 74 20 31 | friendl|y..Bit 1|
|000027e0| 20 6f 66 20 74 68 65 20 | 69 6e 66 6f 20 66 69 65 | of the |info fie|
|000027f0| 6c 64 20 28 4f 42 4a 45 | 43 54 5f 4e 45 55 54 52 |ld (OBJE|CT_NEUTR|
|00002800| 41 4c 29 20 69 73 20 73 | 65 74 20 69 66 20 74 68 |AL) is s|et if th|
|00002810| 65 20 6f 62 6a 65 63 74 | 20 69 73 20 6e 65 75 74 |e object| is neut|
|00002820| 72 61 6c 20 2d 2d 0d 20 | 20 20 20 20 20 69 65 20 |ral --. | ie |
|00002830| 69 74 20 69 73 20 6e 6f | 74 20 63 75 72 72 65 6e |it is no|t curren|
|00002840| 74 6c 79 20 27 6f 77 6e | 65 64 27 20 62 79 20 61 |tly 'own|ed' by a|
|00002850| 6e 79 20 70 6c 61 79 65 | 72 2e 0d 0d 4d 65 73 73 |ny playe|r...Mess|
|00002860| 61 67 65 49 6e 66 6f 20 | 73 74 72 75 63 74 75 72 |ageInfo |structur|
|00002870| 65 0d 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |e.~~~~~~|~~~~~~~~|
|00002880| 7e 7e 7e 7e 7e 7e 7e 0d | 49 66 20 61 20 6d 65 73 |~~~~~~~.|If a mes|
|00002890| 73 61 67 65 20 77 61 73 | 20 73 65 6e 74 20 74 6f |sage was| sent to|
|000028a0| 20 79 6f 75 20 74 68 65 | 6e 20 74 68 65 20 4d 65 | you the|n the Me|
|000028b0| 73 73 61 67 65 49 6e 66 | 6f 20 70 6f 69 6e 74 65 |ssageInf|o pointe|
|000028c0| 72 20 77 69 6c 6c 20 62 | 65 20 6e 6f 6e 2d 6e 75 |r will b|e non-nu|
|000028d0| 6c 6c 2c 20 61 6e 64 0d | 77 69 6c 6c 20 70 6f 69 |ll, and.|will poi|
|000028e0| 6e 74 20 74 6f 20 61 20 | 4d 65 73 73 61 67 65 49 |nt to a |MessageI|
|000028f0| 6e 66 6f 20 73 74 72 75 | 63 74 75 72 65 20 61 73 |nfo stru|cture as|
|00002900| 20 64 65 73 63 72 69 62 | 65 64 20 62 65 6c 6f 77 | describ|ed below|
|00002910| 2e 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |...typed|ef struc|
|00002920| 74 0d 09 7b 0d 09 75 5f | 73 68 6f 72 74 20 73 65 |t..{..u_|short se|
|00002930| 6e 64 65 72 3b 0d 09 50 | 6c 61 79 65 72 4d 61 70 |nder;..P|layerMap|
|00002940| 20 2a 72 65 63 65 69 76 | 65 72 73 3b 0d 09 75 5f | *receiv|ers;..u_|
|00002950| 63 68 61 72 20 2a 6d 65 | 73 73 61 67 65 3b 0d 09 |char *me|ssage;..|
|00002960| 7d 20 4d 65 73 73 61 67 | 65 49 6e 66 6f 3b 0d 0d |} Messag|eInfo;..|
|00002970| 54 68 65 20 73 65 6e 64 | 65 72 20 66 69 65 6c 64 |The send|er field|
|00002980| 20 74 65 6c 6c 73 20 79 | 6f 75 20 77 68 69 63 68 | tells y|ou which|
|00002990| 20 70 6c 61 79 65 72 20 | 73 65 6e 74 20 74 68 65 | player |sent the|
|000029a0| 20 6d 65 73 73 61 67 65 | 2e 20 59 6f 75 20 6d 61 | message|. You ma|
|000029b0| 79 20 65 78 61 6d 69 6e | 65 0d 70 6c 61 79 65 72 |y examin|e.player|
|000029c0| 6e 61 6d 65 73 5b 73 65 | 6e 64 65 72 5d 20 74 6f |names[se|nder] to|
|000029d0| 20 66 69 6e 64 20 6f 75 | 74 20 74 68 65 20 41 53 | find ou|t the AS|
|000029e0| 43 49 49 20 6e 61 6d 65 | 20 6f 66 20 74 68 61 74 |CII name| of that|
|000029f0| 20 70 6c 61 79 65 72 2e | 20 54 68 65 20 72 65 63 | player.| The rec|
|00002a00| 65 69 76 65 72 73 0d 66 | 69 65 6c 64 20 70 6f 69 |eivers.f|ield poi|
|00002a10| 6e 74 73 20 74 6f 20 61 | 20 62 69 74 20 6d 61 70 |nts to a| bit map|
|00002a20| 20 69 6e 64 69 63 61 74 | 69 6e 67 20 77 68 69 63 | indicat|ing whic|
|00002a30| 68 20 70 6c 61 79 65 72 | 73 20 74 68 65 20 6d 65 |h player|s the me|
|00002a40| 73 73 61 67 65 20 77 61 | 73 20 73 65 6e 74 20 74 |ssage wa|s sent t|
|00002a50| 6f 2c 20 61 6e 64 0d 74 | 68 65 20 74 65 78 74 20 |o, and.t|he text |
|00002a60| 6f 66 20 74 68 65 20 6d | 65 73 73 61 67 65 20 69 |of the m|essage i|
|00002a70| 73 20 67 69 76 65 6e 20 | 62 79 20 74 68 65 20 6d |s given |by the m|
|00002a80| 65 73 73 61 67 65 20 66 | 69 65 6c 64 2e 0d 0d 43 |essage f|ield...C|
|00002a90| 6f 6e 74 72 6f 6c 6c 69 | 6e 67 20 74 68 65 20 74 |ontrolli|ng the t|
|00002aa0| 61 6e 6b 0d 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |ank.~~~~|~~~~~~~~|
|00002ab0| 7e 7e 7e 7e 7e 7e 7e 7e | 0d 4d 61 63 72 6f 73 20 |~~~~~~~~|.Macros |
|00002ac0| 61 72 65 20 70 72 6f 76 | 69 64 65 64 20 74 6f 20 |are prov|ided to |
|00002ad0| 73 65 74 20 62 69 74 73 | 20 69 6e 20 74 68 65 20 |set bits| in the |
|00002ae0| 42 6f 6c 6f 4b 65 79 4d | 61 70 20 73 74 72 75 63 |BoloKeyM|ap struc|
|00002af0| 74 75 72 65 2e 20 45 61 | 63 68 20 62 69 74 0d 63 |ture. Ea|ch bit.c|
|00002b00| 6f 72 72 65 73 70 6f 6e | 64 73 20 74 6f 20 61 20 |orrespon|ds to a |
|00002b10| 74 61 6e 6b 20 63 6f 6e | 74 72 6f 6c 20 2d 2d 20 |tank con|trol -- |
|00002b20| 61 63 63 65 6c 65 72 61 | 74 65 2c 20 64 65 63 65 |accelera|te, dece|
|00002b30| 6c 65 72 61 74 65 2c 20 | 74 75 72 6e 2c 20 73 68 |lerate, |turn, sh|
|00002b40| 6f 6f 74 2c 20 65 74 63 | 2e 0d 53 65 74 74 69 6e |oot, etc|..Settin|
|00002b50| 67 20 61 20 62 69 74 20 | 69 6e 20 74 68 65 20 68 |g a bit |in the h|
|00002b60| 6f 6c 64 6b 65 79 73 20 | 73 74 72 75 63 74 75 72 |oldkeys |structur|
|00002b70| 65 20 69 73 20 65 71 75 | 69 76 61 6c 65 6e 74 20 |e is equ|ivalent |
|00002b80| 74 6f 20 74 68 65 20 75 | 73 65 72 20 68 6f 6c 64 |to the u|ser hold|
|00002b90| 69 6e 67 20 74 68 61 74 | 0d 6b 65 79 20 64 6f 77 |ing that|.key dow|
|00002ba0| 6e 20 28 75 6e 74 69 6c | 20 79 6f 75 20 63 6c 65 |n (until| you cle|
|00002bb0| 61 72 20 74 68 65 20 62 | 69 74 20 65 78 70 6c 69 |ar the b|it expli|
|00002bc0| 63 69 74 6c 79 29 2e 20 | 53 65 74 74 69 6e 67 20 |citly). |Setting |
|00002bd0| 61 20 62 69 74 20 69 6e | 20 74 68 65 20 74 61 70 |a bit in| the tap|
|00002be0| 6b 65 79 73 0d 73 74 72 | 75 63 74 75 72 65 20 69 |keys.str|ucture i|
|00002bf0| 73 20 65 71 75 69 76 61 | 6c 65 6e 74 20 74 6f 20 |s equiva|lent to |
|00002c00| 74 68 65 20 75 73 65 72 | 20 74 61 70 70 69 6e 67 |the user| tapping|
|00002c10| 20 74 68 65 20 6b 65 79 | 20 62 72 69 65 66 6c 79 | the key| briefly|
|00002c20| 20 28 66 6f 72 20 61 62 | 6f 75 74 20 31 2f 31 32 | (for ab|out 1/12|
|00002c30| 74 68 0d 6f 66 20 61 20 | 73 65 63 6f 6e 64 29 2e |th.of a |second).|
|00002c40| 20 54 68 69 73 20 63 61 | 6e 20 62 65 20 75 73 65 | This ca|n be use|
|00002c50| 66 75 6c 20 66 6f 72 20 | 74 68 69 6e 67 73 20 6c |ful for |things l|
|00002c60| 69 6b 65 20 66 69 72 69 | 6e 67 20 61 20 73 69 6e |ike firi|ng a sin|
|00002c70| 67 6c 65 20 73 68 6f 74 | 2e 0d 0d 42 75 69 6c 64 |gle shot|...Build|
|00002c80| 69 6e 67 20 43 6f 6e 74 | 72 6f 6c 0d 7e 7e 7e 7e |ing Cont|rol.~~~~|
|00002c90| 7e 7e 7e 7e 7e 7e 7e 7e | 7e 7e 7e 7e 0d 74 79 70 |~~~~~~~~|~~~~.typ|
|00002ca0| 65 64 65 66 20 42 59 54 | 45 20 42 55 49 4c 44 4d |edef BYT|E BUILDM|
|00002cb0| 4f 44 45 3b 0d 65 6e 75 | 6d 0d 09 7b 0d 09 42 55 |ODE;.enu|m..{..BU|
|00002cc0| 49 4c 44 4d 4f 44 45 5f | 46 41 52 4d 3d 31 2c 20 |ILDMODE_|FARM=1, |
|00002cd0| 42 55 49 4c 44 4d 4f 44 | 45 5f 52 4f 41 44 2c 0d |BUILDMOD|E_ROAD,.|
|00002ce0| 09 42 55 49 4c 44 4d 4f | 44 45 5f 42 55 49 4c 44 |.BUILDMO|DE_BUILD|
|00002cf0| 2c 20 42 55 49 4c 44 4d | 4f 44 45 5f 50 42 4f 58 |, BUILDM|ODE_PBOX|
|00002d00| 2c 20 42 55 49 4c 44 4d | 4f 44 45 5f 4d 49 4e 45 |, BUILDM|ODE_MINE|
|00002d10| 0d 09 7d 3b 0d 0d 74 79 | 70 65 64 65 66 20 73 74 |..};..ty|pedef st|
|00002d20| 72 75 63 74 0d 09 7b 0d | 09 4d 41 50 5f 58 20 78 |ruct..{.|.MAP_X x|
|00002d30| 3b 0d 09 4d 41 50 5f 59 | 20 79 3b 0d 09 42 55 49 |;..MAP_Y| y;..BUI|
|00002d40| 4c 44 4d 4f 44 45 20 61 | 63 74 69 6f 6e 3b 0d 09 |LDMODE a|ction;..|
|00002d50| 7d 20 42 75 69 6c 64 49 | 6e 66 6f 3b 0d 0d 49 66 |} BuildI|nfo;..If|
|00002d60| 20 74 68 65 20 61 63 74 | 69 6f 6e 20 66 69 65 6c | the act|ion fiel|
|00002d70| 64 20 69 73 20 7a 65 72 | 6f 2c 20 79 6f 75 20 6d |d is zer|o, you m|
|00002d80| 61 79 20 73 65 74 20 74 | 68 65 20 78 20 61 6e 64 |ay set t|he x and|
|00002d90| 20 79 20 63 6f 6f 72 64 | 69 6e 61 74 65 73 20 74 | y coord|inates t|
|00002da0| 6f 20 74 68 65 0d 6c 6f | 63 61 74 69 6f 6e 20 79 |o the.lo|cation y|
|00002db0| 6f 75 20 77 69 73 68 20 | 74 6f 20 62 75 69 6c 64 |ou wish |to build|
|00002dc0| 20 61 74 2c 20 61 6e 64 | 20 73 65 74 20 74 68 65 | at, and| set the|
|00002dd0| 20 61 63 74 69 6f 6e 20 | 66 69 65 6c 64 20 74 6f | action |field to|
|00002de0| 20 74 68 65 20 6f 70 65 | 72 61 74 69 6f 6e 0d 79 | the ope|ration.y|
|00002df0| 6f 75 20 77 69 73 68 20 | 74 68 65 20 6d 61 6e 20 |ou wish |the man |
|00002e00| 74 6f 20 70 65 72 66 6f | 72 6d 2e 20 57 68 65 6e |to perfo|rm. When|
|00002e10| 20 74 68 65 20 6d 61 6e | 20 68 61 73 20 62 65 65 | the man| has bee|
|00002e20| 6e 20 64 69 73 70 61 74 | 63 68 65 64 20 66 72 6f |n dispat|ched fro|
|00002e30| 6d 20 74 68 65 0d 74 61 | 6e 6b 20 74 6f 20 64 6f |m the.ta|nk to do|
|00002e40| 20 74 68 65 20 62 75 69 | 6c 64 69 6e 67 2c 20 74 | the bui|lding, t|
|00002e50| 68 65 20 61 63 74 69 6f | 6e 20 66 69 65 6c 64 20 |he actio|n field |
|00002e60| 77 69 6c 6c 20 62 65 20 | 72 65 73 65 74 20 74 6f |will be |reset to|
|00002e70| 20 7a 65 72 6f 2c 20 61 | 6e 64 20 79 6f 75 0d 6d | zero, a|nd you.m|
|00002e80| 61 79 20 74 68 65 6e 20 | 71 75 65 75 65 20 75 70 |ay then |queue up|
|00002e90| 20 74 68 65 20 6e 65 78 | 74 20 61 63 74 69 6f 6e | the nex|t action|
|00002ea0| 2c 20 74 6f 20 62 65 20 | 70 65 72 66 6f 72 6d 65 |, to be |performe|
|00002eb0| 64 20 77 68 65 6e 20 74 | 68 65 20 6d 61 6e 20 72 |d when t|he man r|
|00002ec0| 65 74 75 72 6e 73 2e 0d | 0d 41 6c 6c 69 61 6e 63 |eturns..|.Allianc|
|00002ed0| 65 73 0d 7e 7e 7e 7e 7e | 7e 7e 7e 7e 0d 54 68 65 |es.~~~~~|~~~~.The|
|00002ee0| 20 66 69 65 6c 64 20 22 | 50 6c 61 79 65 72 42 69 | field "|PlayerBi|
|00002ef0| 74 4d 61 70 20 2a 61 6c | 6c 69 65 73 22 20 74 65 |tMap *al|lies" te|
|00002f00| 6c 6c 73 20 79 6f 75 20 | 77 68 6f 20 79 6f 75 20 |lls you |who you |
|00002f10| 61 72 65 20 63 75 72 72 | 65 6e 74 6c 79 20 61 6c |are curr|ently al|
|00002f20| 6c 69 65 64 20 74 6f 2e | 0d 49 66 20 79 6f 75 20 |lied to.|.If you |
|00002f30| 61 72 65 20 6e 6f 74 20 | 69 6e 20 61 6e 79 20 61 |are not |in any a|
|00002f40| 6c 6c 69 61 6e 63 65 2c | 20 74 68 65 6e 20 74 68 |lliance,| then th|
|00002f50| 65 20 62 69 74 20 63 6f | 72 72 65 73 70 6f 6e 64 |e bit co|rrespond|
|00002f60| 69 6e 67 20 74 6f 20 79 | 6f 75 72 73 65 6c 66 20 |ing to y|ourself |
|00002f70| 77 69 6c 6c 0d 61 6c 77 | 61 79 73 20 62 65 20 73 |will.alw|ays be s|
|00002f80| 65 74 2c 20 69 6e 64 69 | 63 61 74 69 6e 67 20 61 |et, indi|cating a|
|00002f90| 6e 20 27 61 6c 6c 69 61 | 6e 63 65 27 20 6f 66 20 |n 'allia|nce' of |
|00002fa0| 6f 6e 65 20 70 6c 61 79 | 65 72 2e 0d 0d 54 68 65 |one play|er...The|
|00002fb0| 20 66 69 65 6c 64 20 22 | 50 6c 61 79 65 72 42 69 | field "|PlayerBi|
|00002fc0| 74 4d 61 70 20 2a 77 61 | 6e 74 61 6c 6c 69 65 73 |tMap *wa|ntallies|
|00002fd0| 22 20 69 73 20 75 73 65 | 64 20 74 6f 20 63 6f 6e |" is use|d to con|
|00002fe0| 74 72 6f 6c 20 61 6c 6c | 69 61 6e 63 65 20 6d 65 |trol all|iance me|
|00002ff0| 6d 62 65 72 73 68 69 70 | 2e 0d 0d 49 66 20 79 6f |mbership|...If yo|
|00003000| 75 20 61 72 65 20 63 75 | 72 72 65 6e 74 6c 79 20 |u are cu|rrently |
|00003010| 69 6e 20 61 6e 20 61 6c | 6c 69 61 6e 63 65 20 28 |in an al|liance (|
|00003020| 6f 66 20 6d 6f 72 65 20 | 74 68 61 6e 20 6a 75 73 |of more |than jus|
|00003030| 74 20 79 6f 75 72 73 65 | 6c 66 29 20 74 68 65 6e |t yourse|lf) then|
|00003040| 20 6f 6e 0d 65 61 63 68 | 20 63 61 6c 6c 2c 20 22 | on.each| call, "|
|00003050| 77 61 6e 74 61 6c 6c 69 | 65 73 22 20 77 69 6c 6c |wantalli|es" will|
|00003060| 20 62 65 20 69 6e 69 74 | 69 61 6c 69 7a 65 64 20 | be init|ialized |
|00003070| 74 6f 20 79 6f 75 72 20 | 63 75 72 72 65 6e 74 20 |to your |current |
|00003080| 73 65 74 20 6f 66 20 61 | 6c 6c 69 65 73 2e 0d 59 |set of a|llies..Y|
|00003090| 6f 75 20 68 61 76 65 20 | 74 68 72 65 65 20 6f 70 |ou have |three op|
|000030a0| 74 69 6f 6e 73 3a 0d 0d | 31 2e 20 4c 65 61 76 65 |tions:..|1. Leave|
|000030b0| 20 69 74 20 75 6e 63 68 | 61 6e 67 65 64 2e 0d 32 | it unch|anged..2|
|000030c0| 2e 20 53 65 74 20 6e 65 | 77 20 62 69 74 73 2c 20 |. Set ne|w bits, |
|000030d0| 69 6e 64 69 63 61 74 69 | 6e 67 20 61 6c 6c 69 61 |indicati|ng allia|
|000030e0| 6e 63 65 20 69 6e 76 69 | 74 61 74 69 6f 6e 73 20 |nce invi|tations |
|000030f0| 74 6f 20 6f 74 68 65 72 | 20 70 6c 61 79 65 72 73 |to other| players|
|00003100| 2e 0d 20 20 20 28 54 68 | 65 20 69 6e 76 69 74 65 |.. (Th|e invite|
|00003110| 64 20 70 6c 61 79 65 72 | 73 20 6d 75 73 74 20 68 |d player|s must h|
|00003120| 61 76 65 20 61 6c 72 65 | 61 64 79 20 72 65 71 75 |ave alre|ady requ|
|00003130| 65 73 74 65 64 20 61 6e | 20 61 6c 6c 69 61 6e 63 |ested an| allianc|
|00003140| 65 20 77 69 74 68 20 79 | 6f 75 0d 20 20 20 66 6f |e with y|ou. fo|
|00003150| 72 20 74 68 65 20 69 6e | 76 69 74 61 74 69 6f 6e |r the in|vitation|
|00003160| 20 74 6f 20 74 61 6b 65 | 20 65 66 66 65 63 74 2e | to take| effect.|
|00003170| 29 0d 33 2e 20 53 65 74 | 20 69 74 20 74 6f 20 7a |).3. Set| it to z|
|00003180| 65 72 6f 2c 20 69 6e 64 | 69 63 61 74 69 6e 67 20 |ero, ind|icating |
|00003190| 79 6f 75 72 20 64 65 73 | 69 72 65 20 74 6f 20 6c |your des|ire to l|
|000031a0| 65 61 76 65 20 74 68 69 | 73 20 61 6c 6c 69 61 6e |eave thi|s allian|
|000031b0| 63 65 2e 20 20 20 0d 0d | 49 66 20 79 6f 75 20 61 |ce. ..|If you a|
|000031c0| 72 65 20 4e 4f 54 20 63 | 75 72 72 65 6e 74 6c 79 |re NOT c|urrently|
|000031d0| 20 69 6e 20 61 6e 20 61 | 6c 6c 69 61 6e 63 65 2c | in an a|lliance,|
|000031e0| 20 74 68 65 6e 20 74 68 | 65 20 62 69 74 73 20 69 | then th|e bits i|
|000031f0| 6e 64 69 63 61 74 65 20 | 77 68 6f 20 79 6f 75 20 |ndicate |who you |
|00003200| 77 6f 75 6c 64 0d 6c 69 | 6b 65 20 74 6f 20 62 65 |would.li|ke to be|
|00003210| 20 69 6e 20 61 6e 20 61 | 6c 6c 69 61 6e 63 65 20 | in an a|lliance |
|00003220| 77 69 74 68 2c 20 73 68 | 6f 75 6c 64 20 74 68 65 |with, sh|ould the|
|00003230| 79 20 63 68 6f 6f 73 65 | 20 74 6f 20 69 6e 76 69 |y choose| to invi|
|00003240| 74 65 20 79 6f 75 2e 20 | 59 6f 75 20 61 72 65 20 |te you. |You are |
|00003250| 66 72 65 65 0d 74 6f 20 | 73 65 74 20 74 68 65 20 |free.to |set the |
|00003260| 62 69 74 73 20 61 6e 79 | 20 77 61 79 20 79 6f 75 |bits any| way you|
|00003270| 20 70 6c 65 61 73 65 2c | 20 69 6e 63 6c 75 64 69 | please,| includi|
|00003280| 6e 67 20 61 6c 6c 20 7a | 65 72 6f 2c 20 74 6f 20 |ng all z|ero, to |
|00003290| 69 6e 64 69 63 61 74 65 | 20 74 68 61 74 20 79 6f |indicate| that yo|
|000032a0| 75 0d 64 6f 20 6e 6f 74 | 20 77 61 6e 74 20 61 6e |u.do not| want an|
|000032b0| 20 61 6c 6c 69 61 6e 63 | 65 20 77 69 74 68 20 61 | allianc|e with a|
|000032c0| 6e 79 62 6f 64 79 2e 20 | 49 74 20 69 73 20 6e 6f |nybody. |It is no|
|000032d0| 74 20 6e 65 63 65 73 73 | 61 72 79 20 74 6f 20 73 |t necess|ary to s|
|000032e0| 65 74 20 74 68 65 20 62 | 69 74 20 66 6f 72 0d 79 |et the b|it for.y|
|000032f0| 6f 75 72 73 65 6c 66 20 | 2d 2d 20 69 74 20 69 73 |ourself |-- it is|
|00003300| 20 61 73 73 75 6d 65 64 | 20 74 68 61 74 20 79 6f | assumed| that yo|
|00003310| 75 20 77 61 6e 74 20 74 | 6f 20 62 65 20 66 72 69 |u want t|o be fri|
|00003320| 65 6e 64 6c 79 20 74 6f | 20 79 6f 75 72 73 65 6c |endly to| yoursel|
|00003330| 66 2e 0d 0d 49 66 20 74 | 77 6f 20 6e 6f 6e 2d 61 |f...If t|wo non-a|
|00003340| 6c 6c 69 65 64 20 70 6c | 61 79 65 72 73 20 62 6f |llied pl|ayers bo|
|00003350| 74 68 20 69 6e 64 69 63 | 61 74 65 20 61 20 64 65 |th indic|ate a de|
|00003360| 73 69 72 65 20 74 6f 20 | 62 65 20 61 6c 6c 69 65 |sire to |be allie|
|00003370| 64 20 74 6f 20 65 61 63 | 68 20 6f 74 68 65 72 2c |d to eac|h other,|
|00003380| 0d 74 68 65 6e 20 61 20 | 6d 75 74 75 61 6c 20 61 |.then a |mutual a|
|00003390| 6c 6c 69 61 6e 63 65 20 | 69 73 20 61 75 74 6f 6d |lliance |is autom|
|000033a0| 61 74 69 63 61 6c 6c 79 | 20 66 6f 72 6d 65 64 2e |atically| formed.|
|000033b0| 0d 0d 53 65 6e 64 69 6e | 67 20 6d 65 73 73 61 67 |..Sendin|g messag|
|000033c0| 65 73 0d 7e 7e 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |es.~~~~~|~~~~~~~~|
|000033d0| 7e 7e 7e 0d 6d 65 73 73 | 61 67 65 64 65 73 74 20 |~~~.mess|agedest |
|000033e0| 70 6f 69 6e 74 73 20 74 | 6f 20 61 20 62 69 74 6d |points t|o a bitm|
|000033f0| 61 70 20 6f 66 20 66 6c | 61 67 73 20 61 73 20 64 |ap of fl|ags as d|
|00003400| 65 73 63 72 69 62 65 64 | 20 61 62 6f 76 65 2e 20 |escribed| above. |
|00003410| 46 6f 72 20 65 61 63 68 | 20 74 61 6e 6b 20 79 6f |For each| tank yo|
|00003420| 75 0d 77 61 6e 74 20 74 | 6f 20 73 65 6e 64 20 74 |u.want t|o send t|
|00003430| 6f 2c 20 73 65 74 20 74 | 68 65 20 61 70 70 72 6f |o, set t|he appro|
|00003440| 70 72 69 61 74 65 20 62 | 69 74 20 69 6e 20 74 68 |priate b|it in th|
|00003450| 65 20 62 69 74 6d 61 70 | 2e 20 49 66 20 73 65 6e |e bitmap|. If sen|
|00003460| 64 6d 65 73 73 61 67 65 | 5b 30 5d 20 69 73 0d 7a |dmessage|[0] is.z|
|00003470| 65 72 6f 20 74 68 65 6e | 20 79 6f 75 20 6d 61 79 |ero then| you may|
|00003480| 20 77 72 69 74 65 20 61 | 20 6d 65 73 73 61 67 65 | write a| message|
|00003490| 20 69 6e 74 6f 20 74 68 | 65 20 62 75 66 66 65 72 | into th|e buffer|
|000034a0| 20 69 74 20 70 6f 69 6e | 74 73 20 74 6f 2e 20 54 | it poin|ts to. T|
|000034b0| 68 65 20 6d 65 73 73 61 | 67 65 0d 73 68 6f 75 6c |he messa|ge.shoul|
|000034c0| 64 20 62 65 20 61 20 70 | 61 73 63 61 6c 20 73 74 |d be a p|ascal st|
|000034d0| 72 69 6e 67 20 2d 2d 20 | 69 65 20 73 65 6e 64 6d |ring -- |ie sendm|
|000034e0| 65 73 73 61 67 65 5b 30 | 5d 20 77 69 6c 6c 20 74 |essage[0|] will t|
|000034f0| 68 65 6e 20 63 6f 6e 74 | 61 69 6e 20 74 68 65 20 |hen cont|ain the |
|00003500| 6c 65 6e 67 74 68 20 6f | 66 0d 74 68 65 20 73 74 |length o|f.the st|
|00003510| 72 69 6e 67 2e 20 57 68 | 65 6e 20 74 68 65 20 6d |ring. Wh|en the m|
|00003520| 65 73 73 61 67 65 20 68 | 61 73 20 62 65 65 6e 20 |essage h|as been |
|00003530| 73 65 6e 74 2c 20 73 65 | 6e 64 6d 65 73 73 61 67 |sent, se|ndmessag|
|00003540| 65 5b 30 5d 20 77 69 6c | 6c 20 62 65 20 72 65 73 |e[0] wil|l be res|
|00003550| 65 74 20 74 6f 0d 7a 65 | 72 6f 2e 20 59 6f 75 20 |et to.ze|ro. You |
|00003560| 63 61 6e 20 73 65 6e 64 | 20 61 20 6d 65 73 73 61 |can send| a messa|
|00003570| 67 65 20 74 6f 20 79 6f | 75 72 73 65 6c 66 20 6f |ge to yo|urself o|
|00003580| 6e 6c 79 20 66 6f 72 20 | 74 68 65 20 70 75 72 70 |nly for |the purp|
|00003590| 6f 73 65 20 6f 66 20 64 | 69 73 70 6c 61 79 69 6e |ose of d|isplayin|
|000035a0| 67 0d 64 65 62 75 67 67 | 69 6e 67 20 6d 65 73 73 |g.debugg|ing mess|
|000035b0| 61 67 65 73 2c 20 69 66 | 20 6e 65 63 65 73 73 61 |ages, if| necessa|
|000035c0| 72 79 2e 0d 0d 41 20 6e | 6f 74 65 20 6f 6e 20 74 |ry...A n|ote on t|
|000035d0| 79 70 65 73 0d 7e 7e 7e | 7e 7e 7e 7e 7e 7e 7e 7e |ypes.~~~|~~~~~~~~|
|000035e0| 7e 7e 7e 7e 0d 44 69 72 | 65 63 74 69 6f 6e 73 20 |~~~~.Dir|ections |
|000035f0| 61 72 65 20 67 69 76 65 | 6e 20 61 73 20 73 69 6e |are give|n as sin|
|00003600| 67 6c 65 20 62 79 74 65 | 73 2c 20 77 69 74 68 20 |gle byte|s, with |
|00003610| 74 68 65 20 63 69 72 63 | 6c 65 20 64 69 76 69 64 |the circ|le divid|
|00003620| 65 64 20 69 6e 74 6f 20 | 32 35 36 0d 64 69 76 69 |ed into |256.divi|
|00003630| 73 69 6f 6e 73 2e 20 30 | 20 69 73 20 4e 6f 72 74 |sions. 0| is Nort|
|00003640| 68 2c 20 36 34 20 69 73 | 20 45 61 73 74 2c 20 31 |h, 64 is| East, 1|
|00003650| 32 38 20 69 73 20 53 6f | 75 74 68 2c 20 31 39 32 |28 is So|uth, 192|
|00003660| 20 69 73 20 57 65 73 74 | 2c 20 61 6e 64 20 32 35 | is West|, and 25|
|00003670| 35 20 69 73 20 61 6c 6c | 0d 74 68 65 20 77 61 79 |5 is all|.the way|
|00003680| 20 61 72 6f 75 6e 64 2c | 20 61 6c 6d 6f 73 74 20 | around,| almost |
|00003690| 62 61 63 6b 20 74 6f 20 | 64 75 65 20 4e 6f 72 74 |back to |due Nort|
|000036a0| 68 2e 0d 0d 4d 41 50 20 | 63 6f 6f 72 64 69 6e 61 |h...MAP |coordina|
|000036b0| 74 65 73 20 61 72 65 20 | 38 20 62 69 74 73 20 65 |tes are |8 bits e|
|000036c0| 61 63 68 20 66 6f 72 20 | 58 20 61 6e 64 20 59 2c |ach for |X and Y,|
|000036d0| 20 61 6e 64 20 74 68 65 | 20 75 6e 69 74 20 69 73 | and the| unit is|
|000036e0| 20 6f 6e 65 20 6d 61 70 | 20 73 71 75 61 72 65 2e | one map| square.|
|000036f0| 0d 30 2c 30 20 69 73 20 | 74 68 65 20 74 6f 70 20 |.0,0 is |the top |
|00003700| 6c 65 66 74 20 63 6f 72 | 6e 65 72 20 6f 66 20 74 |left cor|ner of t|
|00003710| 68 65 20 27 77 6f 72 6c | 64 27 2c 20 61 6e 64 20 |he 'worl|d', and |
|00003720| 63 6f 6f 72 64 69 6e 61 | 74 65 73 20 69 6e 63 72 |coordina|tes incr|
|00003730| 65 61 73 65 20 64 6f 77 | 6e 77 61 72 64 73 0d 61 |ease dow|nwards.a|
|00003740| 6e 64 20 74 6f 20 74 68 | 65 20 72 69 67 68 74 2e |nd to th|e right.|
|00003750| 20 32 35 35 2c 32 35 35 | 20 69 73 20 74 68 65 20 | 255,255| is the |
|00003760| 62 6f 74 74 6f 6d 20 72 | 69 67 68 74 20 63 6f 72 |bottom r|ight cor|
|00003770| 6e 65 72 20 6f 66 20 74 | 68 65 20 77 6f 72 6c 64 |ner of t|he world|
|00003780| 2e 20 54 68 65 20 70 6f | 73 69 74 69 6f 6e 0d 6f |. The po|sition.o|
|00003790| 66 20 70 69 6c 6c 62 6f | 78 65 73 20 61 6e 64 20 |f pillbo|xes and |
|000037a0| 72 65 66 75 65 6c 69 6e | 67 20 62 61 73 65 73 20 |refuelin|g bases |
|000037b0| 61 72 65 20 67 69 76 65 | 6e 20 69 6e 20 4d 41 50 |are give|n in MAP|
|000037c0| 20 63 6f 6f 72 64 69 6e | 61 74 65 73 2c 20 73 69 | coordin|ates, si|
|000037d0| 6e 63 65 20 74 68 65 79 | 20 61 72 65 0d 63 6f 6e |nce they| are.con|
|000037e0| 73 74 72 61 69 6e 65 64 | 20 74 6f 20 6c 69 65 20 |strained| to lie |
|000037f0| 6f 6e 20 6d 61 70 20 73 | 71 75 61 72 65 73 2e 0d |on map s|quares..|
|00003800| 0d 57 4f 52 4c 44 20 63 | 6f 6f 72 64 69 6e 61 74 |.WORLD c|oordinat|
|00003810| 65 73 20 61 72 65 20 31 | 36 20 62 69 74 73 20 65 |es are 1|6 bits e|
|00003820| 61 63 68 20 66 6f 72 20 | 58 20 61 6e 64 20 59 2e |ach for |X and Y.|
|00003830| 20 54 68 65 79 20 61 72 | 65 20 61 20 68 69 67 68 | They ar|e a high|
|00003840| 65 72 20 72 65 73 6f 6c | 75 74 69 6f 6e 0d 76 65 |er resol|ution.ve|
|00003850| 72 73 69 6f 6e 20 6f 66 | 20 4d 41 50 20 63 6f 6f |rsion of| MAP coo|
|00003860| 72 64 69 6e 61 74 65 73 | 2c 20 75 73 65 64 20 66 |rdinates|, used f|
|00003870| 6f 72 20 6f 62 6a 65 63 | 74 73 20 73 75 63 68 20 |or objec|ts such |
|00003880| 61 73 20 74 61 6e 6b 73 | 20 77 68 69 63 68 20 63 |as tanks| which c|
|00003890| 61 6e 20 6d 6f 76 65 20 | 6f 6e 20 61 0d 66 69 6e |an move |on a.fin|
|000038a0| 65 72 20 67 72 69 64 20 | 74 68 61 6e 20 77 68 6f |er grid |than who|
|000038b0| 6c 65 20 6d 61 70 20 73 | 71 75 61 72 65 73 2e 20 |le map s|quares. |
|000038c0| 4c 69 6b 65 20 4d 41 50 | 20 63 6f 6f 72 64 69 6e |Like MAP| coordin|
|000038d0| 61 74 65 73 2c 20 57 4f | 52 4c 44 20 63 6f 6f 72 |ates, WO|RLD coor|
|000038e0| 64 69 6e 61 74 65 73 0d | 73 74 61 72 74 20 77 69 |dinates.|start wi|
|000038f0| 74 68 20 30 2c 30 20 69 | 6e 20 74 68 65 20 74 6f |th 0,0 i|n the to|
|00003900| 70 20 6c 65 66 74 2c 20 | 69 6e 63 72 65 61 73 69 |p left, |increasi|
|00003910| 6e 67 20 64 6f 77 6e 77 | 61 72 64 73 20 61 6e 64 |ng downw|ards and|
|00003920| 20 74 6f 20 74 68 65 20 | 72 69 67 68 74 2e 20 32 | to the |right. 2|
|00003930| 35 36 0d 57 4f 52 4c 44 | 20 63 6f 6f 72 64 69 6e |56.WORLD| coordin|
|00003940| 61 74 65 20 75 6e 69 74 | 73 20 6d 61 6b 65 20 6f |ate unit|s make o|
|00003950| 6e 65 20 4d 41 50 20 63 | 6f 6f 72 64 69 6e 61 74 |ne MAP c|oordinat|
|00003960| 65 20 75 6e 69 74 2c 20 | 73 6f 20 65 66 66 65 63 |e unit, |so effec|
|00003970| 74 69 76 65 6c 79 20 74 | 68 65 20 74 6f 70 0d 62 |tively t|he top.b|
|00003980| 79 74 65 20 6f 66 20 74 | 68 65 20 57 4f 52 4c 44 |yte of t|he WORLD|
|00003990| 20 63 6f 6f 72 64 69 6e | 61 74 65 20 67 69 76 65 | coordin|ate give|
|000039a0| 73 20 74 68 65 20 4d 41 | 50 20 73 71 75 61 72 65 |s the MA|P square|
|000039b0| 2c 20 61 6e 64 20 74 68 | 65 20 6c 6f 77 20 62 79 |, and th|e low by|
|000039c0| 74 65 20 67 69 76 65 73 | 20 74 68 65 0d 6c 6f 63 |te gives| the.loc|
|000039d0| 61 74 69 6f 6e 20 77 69 | 74 68 69 6e 20 74 68 65 |ation wi|thin the|
|000039e0| 20 73 71 75 61 72 65 2e | 0d 0d 54 68 65 20 63 6f | square.|..The co|
|000039f0| 6f 72 64 69 6e 61 74 65 | 73 20 67 69 76 65 6e 20 |ordinate|s given |
|00003a00| 66 6f 72 20 6f 62 6a 65 | 63 74 73 20 6c 69 6b 65 |for obje|cts like|
|00003a10| 20 74 61 6e 6b 73 20 61 | 6e 64 20 73 68 6f 74 73 | tanks a|nd shots|
|00003a20| 20 67 69 76 65 20 74 68 | 65 20 70 6f 73 69 74 69 | give th|e positi|
|00003a30| 6f 6e 20 6f 66 20 74 68 | 65 0d 63 65 6e 74 72 65 |on of th|e.centre|
|00003a40| 20 6f 66 20 74 68 65 20 | 6f 62 6a 65 63 74 2e 0d | of the |object..|
|00003a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a80| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00003a90| 5f ff fe b8 05 15 5f ff | fc c7 16 61 90 2e dd 50 |_....._.|...a...P|
|00003aa0| 6e 17 12 65 e6 0e 50 6e | 17 0d 65 e6 0e 17 12 17 |n..e..Pn|..e.....|
|00003ab0| 1b 48 6f 77 20 74 6f 20 | 77 72 69 74 65 20 70 6c |.How to |write pl|
|00003ac0| 75 67 2d 69 6e 20 62 72 | 61 69 6e 73 02 00 00 00 |ug-in br|ains....|
|00003ad0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00003ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003af0| 00 00 ab e6 5a ba 00 00 | 00 00 00 00 01 7e 91 17 |....Z...|.....~..|
|00003b00| 89 53 80 49 ba 4c 94 16 | 61 5f 13 8b 90 40 60 dd |.S.I.L..|a_...@`.|
|00003b10| 00 0b 16 77 0f b9 0f 4d | 16 77 e0 d6 7b 56 2f 12 |...w...M|.w..{V/.|
|00003b20| 6f 30 12 58 b0 1e 16 cd | 60 30 60 b0 17 16 77 68 |o0.X....|`0`...wh|
|00003b30| 77 70 14 88 22 a5 14 75 | 88 14 30 51 16 77 68 d6 |wp.."..u|..0Q.wh.|
|00003b40| e1 57 77 3c 15 85 13 dd | 00 08 67 16 15 80 21 b9 |.Ww<....|..g...!.|
|00003b50| 1a 16 a6 15 a6 c2 14 16 | a9 15 a9 c2 0e 16 a8 15 |........|........|
|00003b60| a8 c2 08 16 a4 05 15 a4 | 05 b8 02 67 dd 60 dd 00 |........|...g.`..|
|00003b70| 0e 14 60 ce 42 51 15 a7 | d6 e1 7c f8 07 0f 77 20 |..`.BQ..|..|...w |
|00003b80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ba0| 00 00 00 00 00 00 00 06 | 00 04 00 2a 00 05 01 8e |........|...*....|
|00003bb0| 02 0e 00 2a 00 05 01 8e | 02 0e ab d6 45 57 00 00 |...*....|....EW..|
|00003bc0| 39 d0 00 00 39 d0 00 00 | 33 a2 01 00 00 00 01 00 |9...9...|3.......|
|00003bd0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 a3 50 18 |...L...L|...2..P.|
|00003be0| 1d 62 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.b.....2|..MPSR..|
|00003bf0| 00 0a 03 ed ff ff 00 00 | 00 00 00 a3 4d c4 00 00 |........|....M...|
+--------+-------------------------+-------------------------+--------+--------+